Fix fgets. Thanks bob!
This commit is contained in:
parent
110faa443e
commit
8c2a152d8f
|
@ -187,7 +187,7 @@ execscript(char *cmd)
|
||||||
if (fp == NULL)
|
if (fp == NULL)
|
||||||
return smprintf("");
|
return smprintf("");
|
||||||
|
|
||||||
rv = fgets(retval, sizeof(retval)-1, fp);
|
rv = fgets(retval, sizeof(retval), fp);
|
||||||
pclose(fp);
|
pclose(fp);
|
||||||
if (rv == NULL)
|
if (rv == NULL)
|
||||||
return smprintf("");
|
return smprintf("");
|
||||||
|
|
Loading…
Reference in New Issue