summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>2010-03-11 19:46:51 (GMT)
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>2010-03-11 19:48:30 (GMT)
commite6134f1bb7e77d6c1441a03e4829351f3f3bca95 (patch)
tree2bbfcdfb022e0eade4258c4995806763a223a416 /tools
parentf4053c19b3e5584f97cfb0eb14d4b488259291b4 (diff)
downloadQt-e6134f1bb7e77d6c1441a03e4829351f3f3bca95.zip
Qt-e6134f1bb7e77d6c1441a03e4829351f3f3bca95.tar.gz
Qt-e6134f1bb7e77d6c1441a03e4829351f3f3bca95.tar.bz2
isalpha() is unspecified for values outside uchar and EOF
Task-number: QTBUG-8907
Diffstat (limited to 'tools')
-rw-r--r--tools/linguist/linguist/mainwindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/linguist/linguist/mainwindow.cpp b/tools/linguist/linguist/mainwindow.cpp
index 6e5c656..321fe8c 100644
--- a/tools/linguist/linguist/mainwindow.cpp
+++ b/tools/linguist/linguist/mainwindow.cpp
@@ -2370,7 +2370,7 @@ static bool haveMnemonic(const QString &str)
// because we get a lot of false positives.
if (c != '&' && c != ' ' && QChar(c).isPrint()) {
const ushort *pp = p;
- for (; ::isalpha(*p); p++) ;
+ for (; *p < 256 && ::isalpha(*p); p++) ;
if (pp == p || *p != ';')
return true;
// This looks like a HTML &entity;, so ignore it. As a HTML string