From 8c2a152d8f4b28f62b8aaa2e0f6b408da9f99fe0 Mon Sep 17 00:00:00 2001 From: Christoph Lohmann <20h@r-36.net> Date: Thu, 18 Aug 2022 17:05:48 +0200 Subject: Fix fgets. Thanks bob! --- dwmstatus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dwmstatus.c') 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(""); -- cgit v1.2.3