Browse Source

Fix missing parameter in popen call

tags/v0.3.5
Martin Kroeker GitHub 7 years ago
parent
commit
0b09516678
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      cpuid_power.c

+ 1
- 1
cpuid_power.c View File

@@ -136,7 +136,7 @@ int detect(void){
char buffer[512], *p;

p = (char *)NULL;
infile = popen("prtconf|grep 'Processor Type'");
infile = popen("prtconf|grep 'Processor Type'", "r");
while (fgets(buffer, sizeof(buffer), infile)){
if (!strncmp("Pro", buffer, 3)){
p = strchr(buffer, ':') + 2;


Loading…
Cancel
Save