diff options
author | nyamatongwe <unknown> | 2007-05-17 12:09:51 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2007-05-17 12:09:51 +0000 |
commit | 44292913b5795c1920b71d524d7d145853148dda (patch) | |
tree | 89f45d6039404cfbcb88835080fbda78015f7b37 /src | |
parent | a645e3f3d7a8c1a52523a1ea9f28c3db823cb865 (diff) | |
download | scintilla-mirror-44292913b5795c1920b71d524d7d145853148dda.tar.gz |
Fix from Iago Rubio for SA25245 buffer overflow error.
http://secunia.com/advisories/25245/
Diffstat (limited to 'src')
-rw-r--r-- | src/LexRuby.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |