X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Fseq_bits.c;h=589bc03a0f438f75a9c15d4c0378881beae9e3f0;hp=e93846ad6fc8e8563d3616cc77243a5bbf948e99;hb=1fb6287fc4986668e8f49d7c3bdca27d53e267af;hpb=a485ed478abbd599d8c9aab48934e7a26733ecb1 diff --git a/sbr/seq_bits.c b/sbr/seq_bits.c index e93846a..589bc03 100644 --- a/sbr/seq_bits.c +++ b/sbr/seq_bits.c @@ -1,26 +1,26 @@ /* - * seq_bits.c -- return the snprintb() string for a sequence - * - * This code is Copyright (c) 2002, by the authors of nmh. See the - * COPYRIGHT file in the root directory of the nmh distribution for - * complete copyright information. - */ +** seq_bits.c -- return the snprintb() string for a sequence +** +** This code is Copyright (c) 2002, by the authors of nmh. See the +** COPYRIGHT file in the root directory of the nmh distribution for +** complete copyright information. +*/ #include char * -seq_bits (struct msgs *mp) +seq_bits(struct msgs *mp) { int i; size_t len; static char buffer[BUFSIZ]; - strncpy (buffer, MBITS, sizeof(buffer)); + strncpy(buffer, MBITS, sizeof(buffer)); for (i = 0; mp->msgattrs[i]; i++) { - len = strlen (buffer); - snprintf (buffer + len, sizeof(buffer) - len, + len = strlen(buffer); + snprintf(buffer + len, sizeof(buffer) - len, "%c%s", FFATTRSLOT + 1 + i, mp->msgattrs[i]); }