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

Diff for /src/usr.bin/sudo/Attic/logging.c between version 1.2 and 1.3

version 1.2, 2000/03/27 03:44:38 version 1.3, 2001/02/19 15:13:42
Line 112 
Line 112 
     /*      /*
      * Log the full line, breaking into multiple syslog(3) calls if necessary       * Log the full line, breaking into multiple syslog(3) calls if necessary
      */       */
     for (p = msg, count = 0; count < strlen(msg) / MAXSYSLOGLEN + 1; count++) {      for (p = msg, count = 0; *p && count < strlen(msg) / MAXSYSLOGLEN + 1;
           count++) {
         if (strlen(p) > MAXSYSLOGLEN) {          if (strlen(p) > MAXSYSLOGLEN) {
             /*              /*
              * Break up the line into what will fit on one syslog(3) line               * Break up the line into what will fit on one syslog(3) line
Line 135 
Line 136 
             *tmp = save;                        /* restore saved character */              *tmp = save;                        /* restore saved character */
   
             /* Eliminate leading whitespace */              /* Eliminate leading whitespace */
             for (p = tmp; *p != ' '; p++)              for (p = tmp; *p != ' ' && *p !='\0'; p++)
                 ;                  ;
         } else {          } else {
             if (count == 0)              if (count == 0)

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3