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

Diff for /src/usr.bin/sdiff/sdiff.c between version 1.29 and 1.30

version 1.29, 2013/04/01 16:08:00 version 1.30, 2013/11/26 21:08:12
Line 427 
Line 427 
                 const char *p;                  const char *p;
   
                 /* Skip leading whitespace. */                  /* Skip leading whitespace. */
                 for (p = cmd; isspace(*p); ++p)                  for (p = cmd; isspace((unsigned char)*p); ++p)
                         ;                          ;
   
                 switch (*p) {                  switch (*p) {
Line 585 
Line 585 
   
         p = line;          p = line;
         /* Go to character after line number. */          /* Go to character after line number. */
         while (isdigit(*p))          while (isdigit((unsigned char)*p))
                 ++p;                  ++p;
         c = *p;          c = *p;
         *p++ = 0;          *p++ = 0;
Line 598 
Line 598 
   
                 q = p;                  q = p;
                 /* Go to character after file2end. */                  /* Go to character after file2end. */
                 while (isdigit(*p))                  while (isdigit((unsigned char)*p))
                         ++p;                          ++p;
                 c = *p;                  c = *p;
                 *p++ = 0;                  *p++ = 0;
Line 618 
Line 618 
   
         q = p;          q = p;
         /* Go to character after line number. */          /* Go to character after line number. */
         while (isdigit(*p))          while (isdigit((unsigned char)*p))
                 ++p;                  ++p;
         c = *p;          c = *p;
         *p++ = 0;          *p++ = 0;

Legend:
Removed from v.1.29  
changed lines
  Added in v.1.30