From 44292913b5795c1920b71d524d7d145853148dda Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Thu, 17 May 2007 12:09:51 +0000 Subject: Fix from Iago Rubio for SA25245 buffer overflow error. http://secunia.com/advisories/25245/ --- src/LexRuby.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/LexRuby.cxx b/src/LexRuby.cxx index 56df30589..18e94d4d8 100644 --- a/src/LexRuby.cxx +++ b/src/LexRuby.cxx @@ -98,7 +98,7 @@ static bool keywordIsModifier(const char *word, Accessor &styler); static int ClassifyWordRb(unsigned int start, unsigned int end, WordList &keywords, Accessor &styler, char *prevWord) { - char s[100]; + char s[MAX_KEYWORD_LENGTH]; unsigned int i, j; unsigned int lim = end - start + 1; // num chars to copy if (lim >= MAX_KEYWORD_LENGTH) { -- cgit v1.2.3