[hackers] [dwmstatus] Fix fgets. Thanks bob! || Christoph Lohmann
commit 8c2a152d8f4b28f62b8aaa2e0f6b408da9f99fe0
Author: Christoph Lohmann <20h_AT_r-36.net>
AuthorDate: Thu Aug 18 17:05:48 2022 +0200
Commit: Christoph Lohmann <20h_AT_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
_AT_@ -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("");
Received on Thu Aug 18 2022 - 17:06:13 CEST
This archive was generated by hypermail 2.3.0
: Thu Aug 18 2022 - 17:12:37 CEST