From 8c20e5dbd3aac1aa45902c6bce3bc32d57c2d598 Mon Sep 17 00:00:00 2001 From: "arg@mig29" Date: Sun, 26 Nov 2006 15:49:33 +0100 Subject: fixing sizeof stuff --- draw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'draw.c') diff --git a/draw.c b/draw.c index 14bb801..74a47a6 100644 --- a/draw.c +++ b/draw.c @@ -35,8 +35,8 @@ drawtext(const char *text, unsigned long col[ColLast]) { 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-13-gbd6f