Return to banner.c CVS log | Up to [local] / src / usr.bin / banner |
version 1.9, 2009/10/27 23:59:35 | version 1.10, 2015/10/05 05:33:29 | ||
---|---|---|---|
|
|
||
#include <unistd.h> | #include <unistd.h> | ||
#include <stdlib.h> | #include <stdlib.h> | ||
#include <string.h> | #include <string.h> | ||
#include <err.h> | |||
#include "banner.h" | #include "banner.h" | ||
|
|
||
{ | { | ||
char word[10+1]; /* strings limited to 10 chars */ | char word[10+1]; /* strings limited to 10 chars */ | ||
if (tame("stdio", NULL) == -1) | |||
err(1, "tame"); | |||
while (*++argv) { | while (*++argv) { | ||
(void)strlcpy(word, *argv, sizeof (word)); | (void)strlcpy(word, *argv, sizeof (word)); | ||
scan_out(1, word, '\0'); | scan_out(1, word, '\0'); |