From 1e99c2fe287ee12f962303dd01cb85cf5e444d42 Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Tue, 19 Jul 2016 21:57:23 -0700 Subject: Fix bug in ensure_dir_exists that would cause it to fail when mixed path separators were used --- util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util.c') 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) { -- cgit v1.2.3