summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cpudetect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpudetect.c b/cpudetect.c
index b7916b18b7..b2dea783f0 100644
--- a/cpudetect.c
+++ b/cpudetect.c
@@ -160,7 +160,7 @@ char *GetCpuFriendlyName(unsigned int regs[], unsigned int regs2[]){
char *retname;
int i;
- if (NULL==(retname=malloc(256))) {
+ if (NULL==(retname=(char*)malloc(256))) {
printf("Error: GetCpuFriendlyName() not enough memory\n");
exit(1);
}