Return to banner.c CVS log | Up to [local] / src / usr.bin / banner |
version 1.3, 1998/12/07 20:09:40 | version 1.4, 2001/06/21 16:35:18 | ||
---|---|---|---|
|
|
||
char word[10+1]; /* strings limited to 10 chars */ | char word[10+1]; /* strings limited to 10 chars */ | ||
while (*++argv) { | while (*++argv) { | ||
(void)strncpy(word, *argv, sizeof (word) - 1); | (void)strlcpy(word, *argv, sizeof (word)); | ||
word[sizeof (word) - 1] = '\0'; | |||
scan_out(1, word, '\0'); | scan_out(1, word, '\0'); | ||
} | } | ||
exit(0); | exit(0); |