diff options
author | arg@mig29 <unknown> | 2006-11-26 15:49:33 +0100 |
---|---|---|
committer | arg@mig29 <unknown> | 2006-11-26 15:49:33 +0100 |
commit | 8c20e5dbd3aac1aa45902c6bce3bc32d57c2d598 (patch) | |
tree | e885d2563b2353f017cc2409d8258f1600cfc4aa /draw.c | |
parent | 26fbf124fa337502136e8465516bb376e9ca8a20 (diff) | |
download | dmenu-8c20e5dbd3aac1aa45902c6bce3bc32d57c2d598.tar.gz dmenu-8c20e5dbd3aac1aa45902c6bce3bc32d57c2d598.tar.bz2 dmenu-8c20e5dbd3aac1aa45902c6bce3bc32d57c2d598.zip |
fixing sizeof stuff
Diffstat (limited to 'draw.c')
-rw-r--r-- | draw.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |