From 54c8dbb2503a5962ec3e8b728f7c0aecdd347606 Mon Sep 17 00:00:00 2001 From: savask Date: Sun, 5 Feb 2012 20:27:16 +0800 Subject: [PATCH] Fix pointer errors for linux. --- src/Misc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Misc.cpp b/src/Misc.cpp index fcea10039..7020ea203 100644 --- a/src/Misc.cpp +++ b/src/Misc.cpp @@ -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());