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

Diff for /src/usr.bin/cdio/rip.c between version 1.13 and 1.14

version 1.13, 2013/11/12 17:57:34 version 1.14, 2013/11/20 20:54:34
Line 124 
Line 124 
         if (n > 3 || n < 1)          if (n > 3 || n < 1)
                 return (-1);                  return (-1);
         for (p = start; p < nxt; p++) {          for (p = start; p < nxt; p++) {
                 if (!isdigit(*p))                  if (!isdigit((unsigned char)*p))
                         return (-1);                          return (-1);
         }          }
   
Line 260 
Line 260 
         p = (char *)arg;          p = (char *)arg;
         for (;;) {          for (;;) {
                 /* Skip trailing spaces */                  /* Skip trailing spaces */
                 while (*p != '\0' && isspace(*p))                  while (*p != '\0' && isspace((unsigned char)*p))
                         ++p;                          ++p;
                 if (*p == '\0')                  if (*p == '\0')
                         break;                          break;
   
                 /* Search for the next space symbol */                  /* Search for the next space symbol */
                 nxt = p;                  nxt = p;
                 while (*nxt != '\0' && !isspace(*nxt))                  while (*nxt != '\0' && !isspace((unsigned char)*nxt))
                         ++nxt;                          ++nxt;
                 /* ``nxt'' can't be equal to ``p'' here */                  /* ``nxt'' can't be equal to ``p'' here */
                 error = _parse_pair(p, nxt, &val1, &val2);                  error = _parse_pair(p, nxt, &val1, &val2);

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14