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

Diff for /src/usr.bin/patch/inp.c between version 1.25 and 1.26

version 1.25, 2003/08/08 07:53:19 version 1.26, 2003/08/10 21:28:48
Line 252 
Line 252 
         }          }
         /* if the last line contains no EOL, append one */          /* if the last line contains no EOL, append one */
         if (i_size > 0 && i_womp[i_size - 1] != '\n') {          if (i_size > 0 && i_womp[i_size - 1] != '\n') {
                   last_line_missing_eol = true;
                 /* fix last line */                  /* fix last line */
                 sz = s - i_ptr[iline];                  sz = s - i_ptr[iline];
                 p = malloc(sz + 1);                  p = malloc(sz + 1);
Line 268 
Line 269 
                 i_ptr[iline] = p;                  i_ptr[iline] = p;
                 /* count the extra line and make it point to some valid mem */                  /* count the extra line and make it point to some valid mem */
                 i_ptr[++iline] = "";                  i_ptr[++iline] = "";
         }          } else
                   last_line_missing_eol = false;
   
         input_lines = iline - 1;          input_lines = iline - 1;
   

Legend:
Removed from v.1.25  
changed lines
  Added in v.1.26