[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.9 and 1.10

version 1.9, 2009/10/27 23:59:35 version 1.10, 2015/10/05 05:33:29
Line 53 
Line 53 
 #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"
   
Line 152 
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)
                   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');

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