summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorRay <[email protected]>2022-03-14 15:31:37 +0100
committerRay <[email protected]>2022-03-14 15:31:37 +0100
commitd2119848ed8ba3f557793ff3de9f3f557776dae8 (patch)
treec1b7a8bd28a51c083c9affab3449e1420395ef8e /src
parentf3b0d7f2febd4734ba4a52a4f8467b37cc446cb1 (diff)
downloadraylib-d2119848ed8ba3f557793ff3de9f3f557776dae8.tar.gz
raylib-d2119848ed8ba3f557793ff3de9f3f557776dae8.zip
REVIEWED: `OpenURL()`
Diffstat (limited to 'src')
-rw-r--r--src/rcore.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rcore.c b/src/rcore.c
index 58c8c4ce..127c8a1e 100644
--- a/src/rcore.c
+++ b/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