From 61a1910f91fe6aba428193087d6c3ff21374ee5e Mon Sep 17 00:00:00 2001 From: "arg@mig29" Date: Sun, 26 Nov 2006 14:26:53 +0100 Subject: applied Jukka's sizeof K&R compliance patch, applied Manuels' last-line printage proposal for stdin reading. --- draw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'draw.c') diff --git a/draw.c b/draw.c index 4441a884..671062c5 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; -- cgit v1.2.3