summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util.c b/util.c
index 75913a4..7981efd 100644
--- a/util.c
+++ b/util.c
@@ -338,7 +338,7 @@ int ensure_dir_exists(char *path)
//so search for both
char *sep = strrchr(parent, '\\');
char *osep = strrchr(parent, '/');
- if (osep && (!sep || osep < sep)) {
+ if (osep && (!sep || osep > sep)) {
sep = osep;
}
if (!sep || sep == parent) {