projects
/
dwm-status
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
110faa4
)
Fix fgets. Thanks bob!
author
Christoph Lohmann
<20h@r-36.net>
Thu, 18 Aug 2022 15:05:48 +0000
(17:05 +0200)
committer
Christoph Lohmann
<20h@r-36.net>
Thu, 18 Aug 2022 15:05:48 +0000
(17:05 +0200)
dwmstatus.c
patch
|
blob
|
blame
|
history
diff --git
a/dwmstatus.c
b/dwmstatus.c
index
0374e38
..
9d81b54
100644
(file)
--- a/
dwmstatus.c
+++ b/
dwmstatus.c
@@
-187,7
+187,7
@@
execscript(char *cmd)
if (fp == NULL)
return smprintf("");
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("");
pclose(fp);
if (rv == NULL)
return smprintf("");