diff options
Diffstat (limited to 'modules/devices')
-rw-r--r-- | modules/devices/x86/processor.c | 2 |
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; |