From 64063fbc0f070a0731c896394e30abebd848f358 Mon Sep 17 00:00:00 2001 From: Simon Robertshaw Date: Sat, 14 Apr 2012 15:32:19 +0100 Subject: [PATCH] Add missing for OpenURI on 64bit Linux --- src/Misc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Misc.cpp b/src/Misc.cpp index 7020ea203..c52be5468 100644 --- a/src/Misc.cpp +++ b/src/Misc.cpp @@ -664,9 +664,9 @@ void OpenURI(std::string uri) { strappend(cmd, (char*)uri.c_str()); system(cmd); #elif LIN64 - 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); #else printf("Cannot open browser\n");