aboutsummaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
Diffstat (limited to 'libbb')
-rw-r--r--libbb/appletlib.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libbb/appletlib.c b/libbb/appletlib.c
index 3e740363a..8fae11998 100644
--- a/libbb/appletlib.c
+++ b/libbb/appletlib.c
@@ -1150,7 +1150,8 @@ int main(int argc UNUSED_PARAM, char **argv)
1150 char *s; 1150 char *s;
1151 1151
1152 str_tolower(argv[0]); 1152 str_tolower(argv[0]);
1153 if (has_exe_suffix_or_dot(argv[0]) && !(s=strrchr(argv[0], '.'))) { 1153 convert_slashes(argv[0]);
1154 if (has_exe_suffix_or_dot(argv[0]) && (s=strrchr(argv[0], '.'))) {
1154 *s = '\0'; 1155 *s = '\0';
1155 } 1156 }
1156 } 1157 }