diff options
author | Ron Yorston <rmy@pobox.com> | 2019-03-15 10:27:19 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2019-03-15 10:27:19 +0000 |
commit | 996f93243dda87de3140c497624312722f47ffa1 (patch) | |
tree | 8c894b5b7414cbd72f02bd309d54ffa62283915a /libbb/appletlib.c | |
parent | 79c85ec59075b5ead415a4713bd72445546dcf8e (diff) | |
download | busybox-w32-996f93243dda87de3140c497624312722f47ffa1.tar.gz busybox-w32-996f93243dda87de3140c497624312722f47ffa1.tar.bz2 busybox-w32-996f93243dda87de3140c497624312722f47ffa1.zip |
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().
Diffstat (limited to 'libbb/appletlib.c')
-rw-r--r-- | libbb/appletlib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/appletlib.c b/libbb/appletlib.c index 49ae35874..35aabe758 100644 --- a/libbb/appletlib.c +++ b/libbb/appletlib.c | |||
@@ -1287,7 +1287,7 @@ int main(int argc UNUSED_PARAM, char **argv) | |||
1287 | char *s; | 1287 | char *s; |
1288 | 1288 | ||
1289 | str_tolower(argv[0]); | 1289 | str_tolower(argv[0]); |
1290 | convert_slashes(argv[0]); | 1290 | bs_to_slash(argv[0]); |
1291 | if (has_exe_suffix_or_dot(argv[0]) && (s=strrchr(argv[0], '.'))) { | 1291 | if (has_exe_suffix_or_dot(argv[0]) && (s=strrchr(argv[0], '.'))) { |
1292 | *s = '\0'; | 1292 | *s = '\0'; |
1293 | } | 1293 | } |