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

Diff for /src/usr.bin/sed/process.c between version 1.18 and 1.19

version 1.18, 2011/09/17 15:29:19 version 1.19, 2013/11/28 18:24:55
Line 468 
Line 468 
                         (void)printf("\\\n");                          (void)printf("\\\n");
                         count = 0;                          count = 0;
                 }                  }
                 if (isascii(*s) && isprint(*s) && *s != '\\') {                  if (isascii((unsigned char)*s) && isprint((unsigned char)*s)
                       && *s != '\\') {
                         (void)putchar(*s);                          (void)putchar(*s);
                         count++;                          count++;
                 } else if (*s != '\n') {                  } else if (*s != '\n') {
Line 541 
Line 542 
         while ((c = *src++) != '\0') {          while ((c = *src++) != '\0') {
                 if (c == '&')                  if (c == '&')
                         no = 0;                          no = 0;
                 else if (c == '\\' && isdigit(*src))                  else if (c == '\\' && isdigit((unsigned char)*src))
                         no = *src++ - '0';                          no = *src++ - '0';
                 else                  else
                         no = -1;                          no = -1;

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