From 3be48e12ea69c4443d7296ad6e00bb77bf9d6f04 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sun, 20 Apr 2008 03:01:04 +0000 Subject: Safety for non-ASCII characters when calling ctype functions. --- src/LexBash.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/LexBash.cxx') 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 -- cgit v1.2.3