commit 8c2a152d8f4b28f62b8aaa2e0f6b408da9f99fe0 Author: Christoph Lohmann <2...@r-36.net> AuthorDate: Thu Aug 18 17:05:48 2022 +0200 Commit: Christoph Lohmann <2...@r-36.net> CommitDate: Thu Aug 18 17:05:48 2022 +0200
Fix fgets. Thanks bob! 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("");