mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03:00
(wipename): Fix string thinko. Now, shredding files
in subdirectories works (dir/file). From Janos Farkas.
This commit is contained in:
1 parent
2e250112ee
commit
68cab6ea0d
1 file changed
+1
-1
+1
-1
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user