Fix fgets. Thanks bob! - dwmstatus - A simple dwm status application in C.
(HTM) git clone git://git.suckless.org/dwmstatus
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) LICENSE
---
(DIR) commit 8c2a152d8f4b28f62b8aaa2e0f6b408da9f99fe0
(DIR) parent 110faa443ead7749b8f17222d198e60a2a1ce4fa
(HTM) Author: Christoph Lohmann <20h@r-36.net>
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(-)
---
(DIR) 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("");