diff --git a/src/Update.cpp b/src/Update.cpp index cee0b7c51..d73eb7e21 100644 --- a/src/Update.cpp +++ b/src/Update.cpp @@ -108,7 +108,7 @@ int update_start(char *data, int len) return 0; #else - temp = malloc(strlen(self)+8); + temp = (char*)malloc(strlen(self)+8); strcpy(temp, self); strcat(temp, "-update");