diff options
author | Christoph Lohmann <20h@r-36.net> | 2022-08-18 17:05:48 +0200 |
---|---|---|
committer | Christoph Lohmann <20h@r-36.net> | 2022-08-18 17:05:48 +0200 |
commit | 8c2a152d8f4b28f62b8aaa2e0f6b408da9f99fe0 (patch) | |
tree | 09f6cc6ca7b29bd4cc5f28bdc3973ef43edb8589 /dwmstatus.c | |
parent | 110faa443ead7749b8f17222d198e60a2a1ce4fa (diff) |
Fix fgets. Thanks bob!
Diffstat (limited to 'dwmstatus.c')
-rw-r--r-- | dwmstatus.c | 2 |
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(""); |