(wipename): Fix string thinko. Now, shredding files

in subdirectories works (dir/file).  From Janos Farkas.
This commit is contained in:
Jim Meyering committed 1999-02-17 14:41:39 +00:00
1 parent 2e250112ee
commit 68cab6ea0d
1 file changed
+1 -1
+1 -1
View File
@@ -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;
}
}