summaryrefslogtreecommitdiff
path: root/modules/devices/x86
diff options
context:
space:
mode:
Diffstat (limited to 'modules/devices/x86')
-rw-r--r--modules/devices/x86/processor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/devices/x86/processor.c b/modules/devices/x86/processor.c
index 86a957bb..63496cda 100644
--- a/modules/devices/x86/processor.c
+++ b/modules/devices/x86/processor.c
@@ -456,7 +456,7 @@ GSList *processor_scan(void)
FILE *cpuinfo;
gchar *buffer;
- buffer = (gchar *) g_malloc(PROC_SCAN_READ_BUFFER_SIZE * sizeof(gchar));
+ buffer = g_malloc(PROC_SCAN_READ_BUFFER_SIZE);
cpuinfo = fopen(PROC_CPUINFO, "r");
if (!cpuinfo)
return NULL;