From 996f93243dda87de3140c497624312722f47ffa1 Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Fri, 15 Mar 2019 10:27:19 +0000 Subject: win32: add function to convert slashes to backslashes There are now two places where slashes are converted to backslashes throughout a string so it makes sense to create a function to do this. To avoid confusion rename convert_slashes() to bs_to_slash() and call the new function slash_to_bs(). --- shell/ash.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'shell') diff --git a/shell/ash.c b/shell/ash.c index 8daf263dc..4adad65aa 100644 --- a/shell/ash.c +++ b/shell/ash.c @@ -14696,7 +14696,7 @@ init(void) * cause problems */ if ( !winxp && strncmp(*envp, "SYSTEMROOT=", 11) != 0 && strncmp(*envp, "COMSPEC=", 8) != 0 ) { - convert_slashes(end+1); + bs_to_slash(end+1); } /* check for invalid characters in name */ @@ -14838,7 +14838,7 @@ procargs(char **argv) } else if (!sflag) { setinputfile(*xargv, 0); #if ENABLE_PLATFORM_MINGW32 - convert_slashes(*xargv); + bs_to_slash(*xargv); #endif setarg0: arg0 = *xargv++; -- cgit v1.2.3-55-g6feb