Fix fgets. Thanks bob! - dwmstatus - A simple dwm status application in C. | |
git clone git://git.suckless.org/dwmstatus | |
Log | |
Files | |
Refs | |
LICENSE | |
--- | |
commit 8c2a152d8f4b28f62b8aaa2e0f6b408da9f99fe0 | |
parent 110faa443ead7749b8f17222d198e60a2a1ce4fa | |
Author: Christoph Lohmann <[email protected]> | |
Date: Thu, 18 Aug 2022 17:05:48 +0200 | |
Fix fgets. Thanks bob! | |
Diffstat: | |
M dwmstatus.c | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) | |
--- | |
diff --git a/dwmstatus.c b/dwmstatus.c | |
@@ -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(""); |