From bafa85e772fff6b0a279c96678a7f92d1ce842f0 Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Sun, 31 Jul 2022 12:23:45 +0200 Subject: Fixed a warning --- src/wrapped/wrappedlibc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/wrapped/wrappedlibc.c b/src/wrapped/wrappedlibc.c index 60c294d2..06e531e0 100755 --- a/src/wrapped/wrappedlibc.c +++ b/src/wrapped/wrappedlibc.c @@ -1321,8 +1321,8 @@ void grabNCpu() { if(f) { nCPU = 0; size_t len = 500; - char* line[500] = {0}; - while ((dummy = getline(&line, &len, f)) != -1) { + char line[500] = {0}; + while ((dummy = getline((char**)&line, &len, f)) != -1) { if(!strncmp(line, "processor\t", strlen("processor\t"))) ++nCPU; if(!nCPU && !strncmp(line, "BogoMIPS\t", strlen("BogoMIPS\t"))) { -- cgit 1.4.1