]> diplodocus.org Git - nmh/commitdiff
Replace sprintf() with strcpy(); it's no worse.
authorRalph Corderoy <ralph@inputplus.co.uk>
Wed, 19 Oct 2016 17:47:30 +0000 (18:47 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Wed, 19 Oct 2016 18:06:59 +0000 (19:06 +0100)
sbr/seq_list.c

index 268c259..702def8 100644 (file)
@@ -85,7 +85,7 @@ seq_list(struct msgs *mp, char *seqname)
        if (bp > buffer)
            *bp++ = ' ';
 
        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 */
 
        bp += strlen(bp);
        j = i;                  /* Remember beginning of message range */
 
@@ -97,7 +97,8 @@ seq_list(struct msgs *mp, char *seqname)
            ;
 
        if (i - j > 1) {
            ;
 
        if (i - j > 1) {
-           sprintf(bp, "-%s", m_name(i - 1));
+            *bp++ = '-';
+           strcpy(bp, m_name(i - 1));
            bp += strlen(bp);
        }
     }
            bp += strlen(bp);
        }
     }