aboutsummaryrefslogtreecommitdiff
path: root/libbb/get_last_path_component.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbb/get_last_path_component.c')
-rw-r--r--libbb/get_last_path_component.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/get_last_path_component.c b/libbb/get_last_path_component.c
index 3a9b9237e..00649620d 100644
--- a/libbb/get_last_path_component.c
+++ b/libbb/get_last_path_component.c
@@ -13,7 +13,7 @@ const char* FAST_FUNC bb_basename(const char *name)
13#if ENABLE_PLATFORM_MINGW32 13#if ENABLE_PLATFORM_MINGW32
14 const char *cp; 14 const char *cp;
15 for (cp = name; *cp; cp++) 15 for (cp = name; *cp; cp++)
16 if (*cp == '/' || *cp == '\\') 16 if (*cp == '/' || *cp == '\\' || *cp == ':')
17 name = cp + 1; 17 name = cp + 1;
18#else 18#else
19 const char *cp = strrchr(name, '/'); 19 const char *cp = strrchr(name, '/');