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

Diff for /src/usr.bin/readlink/readlink.c between version 1.10 and 1.11

version 1.10, 1997/09/23 20:13:21 version 1.11, 1997/09/23 20:21:28
Line 133 
Line 133 
 #ifdef DEBUG  #ifdef DEBUG
                 fprintf(stderr, "%s\n", newpath);                  fprintf(stderr, "%s\n", newpath);
 #endif  #endif
                 strcpy(target, newpath);                  strncpy(target, newpath, sizeof target-1);
                   target[sizeof target-1] = '\0';
                 path = target;                  path = target;
         }          }
 }  }

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