summaryrefslogtreecommitdiff
path: root/dwmstatus.c
diff options
context:
space:
mode:
authorChristoph Lohmann <20h@r-36.net>2022-08-18 17:05:48 +0200
committerChristoph Lohmann <20h@r-36.net>2022-08-18 17:05:48 +0200
commit8c2a152d8f4b28f62b8aaa2e0f6b408da9f99fe0 (patch)
tree09f6cc6ca7b29bd4cc5f28bdc3973ef43edb8589 /dwmstatus.c
parent110faa443ead7749b8f17222d198e60a2a1ce4fa (diff)
Fix fgets. Thanks bob!
Diffstat (limited to 'dwmstatus.c')
-rw-r--r--dwmstatus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dwmstatus.c b/dwmstatus.c
index 0374e38..9d81b54 100644
--- 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("");