aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRay <raysan5@gmail.com>2019-02-21 11:28:10 +0100
committerRay <raysan5@gmail.com>2019-02-21 11:28:10 +0100
commit75298b50fbfe8a8fad9c52c3cd8882072fb1ed36 (patch)
treea1974a3966c82f65b1960013fa0f02598297b243 /src
parentb3568e6d152ddbd4f5a5bbfbba244c8ebf729140 (diff)
downloadraylib-75298b50fbfe8a8fad9c52c3cd8882072fb1ed36.tar.gz
raylib-75298b50fbfe8a8fad9c52c3cd8882072fb1ed36.zip
Corrected issue with OpenURL()
It was not working on Windows 10
Diffstat (limited to 'src')
-rw-r--r--src/core.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core.c b/src/core.c
index 67357ce9..36315113 100644
--- a/src/core.c
+++ b/src/core.c
@@ -1917,14 +1917,13 @@ void OpenURL(const char *url)
char *cmd = (char *)calloc(strlen(url) + 10, sizeof(char));
#if defined(_WIN32)
- sprintf(cmd, "explorer '%s'", url);
+ sprintf(cmd, "explorer %s", url);
#elif defined(__linux__)
sprintf(cmd, "xdg-open '%s'", url); // Alternatives: firefox, x-www-browser
#elif defined(__APPLE__)
sprintf(cmd, "open '%s'", url);
#endif
system(cmd);
-
free(cmd);
}
}