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

Diff for /src/usr.bin/newsyslog/newsyslog.c between version 1.17 and 1.18

version 1.17, 1999/01/05 00:43:44 version 1.18, 1999/03/08 03:16:34
Line 361 
Line 361 
   
                 q = parse = missing_field(sob(++parse),errline);                  q = parse = missing_field(sob(++parse),errline);
                 *(parse = son(parse)) = '\0';                  *(parse = son(parse)) = '\0';
                 if (!sscanf(q,"%d",&working->numlogs))                  if (!sscanf(q,"%d",&working->numlogs) || working->numlogs < 0)
                         errx(1, "Error in config file; bad number: %s", q);                          errx(1, "Error in config file; bad number: %s", q);
   
                 q = parse = missing_field(sob(++parse),errline);                  q = parse = missing_field(sob(++parse),errline);

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18