about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2022-07-31 12:23:45 +0200
committerptitSeb <sebastien.chev@gmail.com>2022-08-06 16:10:17 +0200
commitbafa85e772fff6b0a279c96678a7f92d1ce842f0 (patch)
tree42bc754038184b51c3caf8585fc2a835df14b4b1 /src
parent4f102a43fa6d36a3dcb105c424454399640df415 (diff)
downloadbox64-bafa85e772fff6b0a279c96678a7f92d1ce842f0.tar.gz
box64-bafa85e772fff6b0a279c96678a7f92d1ce842f0.zip
Fixed a warning
Diffstat (limited to 'src')
-rwxr-xr-xsrc/wrapped/wrappedlibc.c4
1 files changed, 2 insertions, 2 deletions
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"))) {