fix: remove trailing slashes before making directory

Remove the trailing slashes from 'undofile' and 'backupdir' before
creating directories. They cause problems on Windows which doesn't
recognize these slashes as proper path separators.
This commit is contained in:
Gregory Anders
2021-08-27 10:33:51 -06:00
parent 460019366e
commit 4e516e53bf
3 changed files with 24 additions and 8 deletions

View File

@@ -1442,7 +1442,7 @@ recover_names (
* Append the full path to name with path separators made into percent
* signs, to dir. An unnamed buffer is handled as "" (<currentdir>/"")
*/
char *make_percent_swname(const char *dir, char *name)
char *make_percent_swname(const char *dir, const char *name)
FUNC_ATTR_NONNULL_ARG(1)
{
char *d = NULL;