mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-01 06:00:15 +02:00
Fix pointer errors for linux.
This commit is contained in:
@@ -659,9 +659,9 @@ void OpenURI(std::string uri) {
|
||||
strappend(cmd, uri.c_str());
|
||||
system(cmd);
|
||||
#elif LIN32
|
||||
char *cmd = malloc(11+uri.length());
|
||||
char *cmd = (char*)malloc(11+uri.length());
|
||||
strcpy(cmd, "xdg-open ");
|
||||
strappend(cmd, uri.c_str());
|
||||
strappend(cmd, (char*)uri.c_str());
|
||||
system(cmd);
|
||||
#elif LIN64
|
||||
char *cmd = malloc(11+uri.length());
|
||||
|
Reference in New Issue
Block a user