diff --git a/compat/mingw.c b/compat/mingw.c index f3517c78f6238d..94fa89f7c726f4 100644 --- a/compat/mingw.c +++ b/compat/mingw.c @@ -835,7 +835,7 @@ static void free_path_split(char **path) static char *lookup_prog(const char *dir, const char *cmd, int isexe, int exe_only) { char path[MAX_PATH]; - snprintf(path, sizeof(path), "%s/%s.exe", dir, cmd); + snprintf(path, sizeof(path), "%s\\%s.exe", dir, cmd); if (!isexe && access(path, F_OK) == 0) return xstrdup(path);