aboutsummaryrefslogtreecommitdiff
path: root/draw.c
diff options
context:
space:
mode:
authorarg@mig29 <unknown>2006-11-26 15:49:33 +0100
committerarg@mig29 <unknown>2006-11-26 15:49:33 +0100
commit8c20e5dbd3aac1aa45902c6bce3bc32d57c2d598 (patch)
treee885d2563b2353f017cc2409d8258f1600cfc4aa /draw.c
parent26fbf124fa337502136e8465516bb376e9ca8a20 (diff)
downloaddmenu-8c20e5dbd3aac1aa45902c6bce3bc32d57c2d598.tar.gz
dmenu-8c20e5dbd3aac1aa45902c6bce3bc32d57c2d598.tar.bz2
dmenu-8c20e5dbd3aac1aa45902c6bce3bc32d57c2d598.zip
fixing sizeof stuff
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 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;