Browse Source

REVIEWED: `OpenURL()`

Ray 3 years ago
parent
commit
d2119848ed
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/rcore.c

+ 1 - 1
src/rcore.c

@@ -3443,7 +3443,7 @@ void OpenURL(const char *url)
 #if defined(PLATFORM_DESKTOP)
         char *cmd = (char *)RL_CALLOC(strlen(url) + 10, sizeof(char));
     #if defined(_WIN32)
-        sprintf(cmd, "explorer %s", url);
+        sprintf(cmd, "explorer \"%s\"", url);
     #endif
     #if defined(__linux__) || defined(__FreeBSD__)
         sprintf(cmd, "xdg-open '%s'", url); // Alternatives: firefox, x-www-browser