diff options
author | Ondrej Čerman <10187350+ocerman@users.noreply.github.com> | 2019-11-16 22:28:09 +0100 |
---|---|---|
committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2019-11-16 13:45:22 -0800 |
commit | 789d1e9c40e0b2526ee685e8ba591464c56d0e92 (patch) | |
tree | 58c45af4e507130196fa94d0b10fec90ef5d8f9e /modules/devices/x86 | |
parent | 2b6483c3e9fd633c0b32364d1fdc111433c70198 (diff) |
x86/processor: update malloc
Co-Authored-By: Leandro A. F. Pereira <leandro@hardinfo.org>
Diffstat (limited to 'modules/devices/x86')
-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; |