From: Jim Meyering Date: Wed, 17 Feb 1999 14:41:39 +0000 (+0000) Subject: (wipename): Fix string thinko. Now, shredding files X-Git-Tag: FILEUTILS-4_0e~236 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=68cab6ea0d5d5d1f7f11bccc862cef88ddbd5f5b;p=thirdparty%2Fcoreutils.git (wipename): Fix string thinko. Now, shredding files in subdirectories works (dir/file). From Janos Farkas. --- diff --git a/src/shred.c b/src/shred.c index 46b26beedf..14478c67ae 100644 --- a/src/shred.c +++ b/src/shred.c @@ -1209,7 +1209,7 @@ wipename (char *oldname, struct Options const *flags) if (flags->verbose > 1) flushstatus (); } - memcpy (oldname + (base - newname), newname, len + 1); + memcpy (oldname + (base - newname), base, len + 1); break; } }