Fix missing parameter in popen call
This commit is contained in:
parent
6ba30e270d
commit
0b09516678
|
@ -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…
Reference in New Issue