Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: [netbsd-2-0] src/usr.bin/gzip
Module Name: src
Committed By: tron
Date: Sun May 30 14:45:07 UTC 2004
Modified Files:
src/usr.bin/gzip [netbsd-2-0]: gzip.c
Log Message:
Pull up revision 1.44 (requested by mrg in ticket #420):
Fix a reference to stale storage on the stack - malloc the new file
name when gunzip'ing via strdup(3). Fixes a bug whereby the new
filename would appear as gibberish when verbosely gunzipping.
Fix an off-by-one error when allocating the filename with added suffix,
and properly NUL-terminate the new filename.
It's NULL, not 0, in char * assignments - there are some still to do here.
To generate a diff of this commit:
cvs rdiff -r1.29.2.8 -r1.29.2.9 src/usr.bin/gzip/gzip.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