[BACK]Return to banner.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / banner

Diff for /src/usr.bin/banner/banner.c between version 1.10 and 1.11

version 1.10, 2015/10/05 05:33:29 version 1.11, 2015/10/09 01:37:06
Line 153 
Line 153 
 {  {
         char word[10+1];                        /* strings limited to 10 chars */          char word[10+1];                        /* strings limited to 10 chars */
   
         if (tame("stdio", NULL) == -1)          if (pledge("stdio", NULL) == -1)
                 err(1, "tame");                  err(1, "pledge");
         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');

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11