aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tokenize.c
diff options
authorwelinder@troll.com <welinder@troll.com>2004-11-01 14:08:06 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-07 21:03:53 -0700
commitea8cf8a9d7c3ec05eda7e3af4d02dec8130b69dd (patch)
tree7e584322e57cb5995c6b54c01a47b5c1b9f83df0 /tokenize.c
parent1bdbd8e624f8e345a9fd0abeaa3acf854f275b82 (diff)
downloadsparse-dev-ea8cf8a9d7c3ec05eda7e3af4d02dec8130b69dd.tar.gz
Prevent buffer overrun in show_string.
Diffstat (limited to 'tokenize.c')
-rw-r--r--tokenize.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tokenize.c b/tokenize.c
index b9e996d4..7cd24565 100644
--- a/tokenize.c
+++ b/tokenize.c
@@ -83,7 +83,7 @@ char *charstr(char *ptr, unsigned char c, unsigned char escape, unsigned char ne
const char *show_string(const struct string *string)
{
- static char buffer[256];
+ static char buffer[4 * MAX_STRING + 3];
char *ptr;
int i;