summaryrefslogtreecommitdiff
path: root/dwmstatus.c
diff options
context:
space:
mode:
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("");