-
-/*
- * seq_list.c -- Get all messages in a sequence and return them
+/* seq_list.c -- Get all messages in a sequence and return them
* -- as a space separated list of message ranges.
*
* This code is Copyright (c) 2002, by the authors of nmh. See the
if (mp->curmsg) {
snprintf(buffer, len, "%s", m_name(mp->curmsg));
return (buffer);
- } else
- return (NULL);
+ }
+ return (NULL);
}
/* If the folder is empty, just return NULL */
if (bp > buffer)
*bp++ = ' ';
- sprintf(bp, "%s", m_name(i));
+ strcpy(bp, m_name(i));
bp += strlen(bp);
j = i; /* Remember beginning of message range */
;
if (i - j > 1) {
- sprintf(bp, "-%s", m_name(i - 1));
+ *bp++ = '-';
+ strcpy(bp, m_name(i - 1));
bp += strlen(bp);
}
}