Xinqi Bao's Git
projects
/
dwm.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
| inline |
side by side
applied Jukka's sizeof K&R compliance patch, applied Manuels' last-line printage...
[dwm.git]
/
draw.c
diff --git
a/draw.c
b/draw.c
index
4441a88
..
671062c
100644
(file)
--- a/
draw.c
+++ b/
draw.c
@@
-43,8
+43,8
@@
drawtext(const char *text, unsigned long col[ColLast], Bool ldot, Bool rdot) {
return;
w = 0;
olen = len = strlen(text);
- if(len >= sizeof
(buf)
)
- len = sizeof
(buf)
- 1;
+ if(len >= sizeof
buf
)
+ len = sizeof
buf
- 1;
memcpy(buf, text, len);
buf[len] = 0;
h = dc.font.ascent + dc.font.descent;