Fix fgets. Thanks bob!

This commit is contained in:
Christoph Lohmann 2022-08-18 17:05:48 +02:00
parent 110faa443e
commit 8c2a152d8f
1 changed files with 1 additions and 1 deletions

View File

@ -187,7 +187,7 @@ execscript(char *cmd)
if (fp == NULL)
return smprintf("");
rv = fgets(retval, sizeof(retval)-1, fp);
rv = fgets(retval, sizeof(retval), fp);
pclose(fp);
if (rv == NULL)
return smprintf("");