aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2007-05-17 12:09:51 +0000
committernyamatongwe <devnull@localhost>2007-05-17 12:09:51 +0000
commitb5f860759f0d8948cef204e78a1bad9adbcd10d8 (patch)
tree89f45d6039404cfbcb88835080fbda78015f7b37 /src
parentfa83ffb952e0ebc1fcbb0226784016dcb27e9a41 (diff)
downloadscintilla-mirror-b5f860759f0d8948cef204e78a1bad9adbcd10d8.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.cxx2
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) {