projects
/
dwm-status
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix fgets. Thanks bob!
[dwm-status]
/
dwmstatus.c
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("");