From 8b6e6008c766e61f97e0af8b6c36c06410a9f17d Mon Sep 17 00:00:00 2001 From: stijn Date: Tue, 4 Feb 2020 10:01:52 +0100 Subject: [PATCH] unix/main: Use OS-dependent path separator when searching path. --- ports/unix/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ports/unix/main.c b/ports/unix/main.c index 7a3305a5dc..3f464d5a79 100644 --- a/ports/unix/main.c +++ b/ports/unix/main.c @@ -493,7 +493,7 @@ MP_NOINLINE int main_(int argc, char **argv) { #endif } size_t path_num = 1; // [0] is for current dir (or base dir of the script) - if (*path == ':') { + if (*path == PATHLIST_SEP_CHAR) { path_num++; } for (char *p = path; p != NULL; p = strchr(p, PATHLIST_SEP_CHAR)) {