Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: basesrc



Module Name:    basesrc
Committed By:   mycroft
Date:           Fri Aug 27 18:01:35 UTC 1999

Modified Files:
        basesrc/lib/libc/gen: __fts13.c

Log Message:
Fix multiple problems in the FTS_NOCHDIR case:
* There was an off-by-one error that caused the addition of a NUL or slash in 
fts_build() to
  overwrite other memory.
* After fts_palloc(), we need to reset `cp' so that it points to the new path 
name buffer;
  otherwise the addition of the file name before calling fts_stat() could lose.
Also, fix stupidity in the fts_palloc() interface.  We don't want N bytes more 
than the
current buffer size; we want N bytes more than the current length.  Just pass 
in the new
size, since we can't figure it out easily here.


To generate a diff of this commit:
cvs rdiff -r1.19 -r1.20 basesrc/lib/libc/gen/__fts13.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index