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

Diff for /src/usr.bin/patch/pch.c between version 1.9 and 1.10

version 1.9, 1998/11/25 00:30:26 version 1.10, 1999/12/04 01:01:07
Line 454 
Line 454 
             p_input_line++;              p_input_line++;
             if (ret == Nullch) {              if (ret == Nullch) {
                 if (p_max - p_end < 4)                  if (p_max - p_end < 4)
                     Strcpy(buf, "  \n");  /* assume blank lines got chopped */                      strcpy(buf, "  \n");  /* assume blank lines got chopped */
                 else {                  else {
                     if (repl_beginning && repl_could_be_missing) {                      if (repl_beginning && repl_could_be_missing) {
                         repl_missing = TRUE;                          repl_missing = TRUE;
Line 499 
Line 499 
                 if (!*s)                  if (!*s)
                     malformed ();                      malformed ();
                 if (strnEQ(s,"0,0",3))                  if (strnEQ(s,"0,0",3))
                     strcpy(s,s+2);                      strcpy(s, s+2);
                 p_first = (LINENUM) atol(s);                  p_first = (LINENUM) atol(s);
                 while (isdigit(*s)) s++;                  while (isdigit(*s)) s++;
                 if (*s == ',') {                  if (*s == ',') {
Line 807 
Line 807 
             p_input_line++;              p_input_line++;
             if (ret == Nullch) {              if (ret == Nullch) {
                 if (p_max - filldst < 3)                  if (p_max - filldst < 3)
                     Strcpy(buf, " \n");  /* assume blank lines got chopped */                      strcpy(buf, " \n");  /* assume blank lines got chopped */
                 else {                  else {
                     fatal1("unexpected end of file in patch\n");                      fatal1("unexpected end of file in patch\n");
                 }                  }
Line 1023 
Line 1023 
             else              else
                 indent++;                  indent++;
         }          }
         if (buf != s)          if (buf != s && strlcpy(buf, s, sizeof(buf)) >= sizeof(buf))
             Strcpy(buf, s);              fatal1("buffer too small in pgets()\n");
     }      }
     return ret;      return ret;
 }  }

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10