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

Diff for /src/usr.bin/make/cmd_exec.c between version 1.3 and 1.4

version 1.3, 2002/08/05 17:04:36 version 1.4, 2003/10/19 20:23:34
Line 126 
Line 126 
         /* The result is null terminated, Convert newlines to spaces. */          /* The result is null terminated, Convert newlines to spaces. */
         cp = result + length - 1;          cp = result + length - 1;
   
         if (*cp == '\n')          if (cp >= result && *cp == '\n')
             /* A final newline is just stripped.  */              /* A final newline is just stripped.  */
             *cp-- = '\0';              *cp-- = '\0';
   

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4