diff options
author | nyamatongwe <unknown> | 2008-04-20 03:01:04 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2008-04-20 03:01:04 +0000 |
commit | bcceb7d8295269d7b468d41f70413ea108abb192 (patch) | |
tree | fd4f9af4c09e56d957cc1ac5de7b1b40809632f9 /src/LexBash.cxx | |
parent | 71c30fc4aa2cea19dc884ede105fa098cc99a210 (diff) | |
download | scintilla-mirror-bcceb7d8295269d7b468d41f70413ea108abb192.tar.gz |
Safety for non-ASCII characters when calling ctype functions.
Diffstat (limited to 'src/LexBash.cxx')
-rw-r--r-- | src/LexBash.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/LexBash.cxx b/src/LexBash.cxx index f0376b947..0797e68a9 100644 --- a/src/LexBash.cxx +++ b/src/LexBash.cxx @@ -273,7 +273,7 @@ static void ColouriseBashDoc(unsigned int startPos, int length, int initStyle, ch = chNext; chNext = chNext2; styler.ColourTo(i, SCE_SH_IDENTIFIER); - } else if (isdigit(ch)) { + } else if (isascii(ch) && isdigit(ch)) { state = SCE_SH_NUMBER; numBase = BASH_BASE_DECIMAL; if (ch == '0') { // hex,octal |