about summary refs log tree commit diff stats
path: root/draw.c
diff options
context:
space:
mode:
authorarg@mig29 <unknown>2006-11-26 14:26:53 +0100
committerarg@mig29 <unknown>2006-11-26 14:26:53 +0100
commit61a1910f91fe6aba428193087d6c3ff21374ee5e (patch)
treec6406dfd44df07e2e54309f29aef093b798d3d2d /draw.c
parent27ef73507b69608c63bd7d1684b7d9987fbcce53 (diff)
downloaddwm-61a1910f91fe6aba428193087d6c3ff21374ee5e.tar.gz
applied Jukka's sizeof K&R compliance patch, applied Manuels' last-line printage proposal for stdin reading.
Diffstat (limited to 'draw.c')
-rw-r--r--draw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/draw.c b/draw.c
index 4441a88..671062c 100644
--- 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;