diff options
author | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2010-03-11 20:46:51 +0100 |
---|---|---|
committer | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2010-03-11 20:48:30 +0100 |
commit | e6134f1bb7e77d6c1441a03e4829351f3f3bca95 (patch) | |
tree | 2bbfcdfb022e0eade4258c4995806763a223a416 /tools/linguist/linguist | |
parent | f4053c19b3e5584f97cfb0eb14d4b488259291b4 (diff) | |
download | qt4-tools-e6134f1bb7e77d6c1441a03e4829351f3f3bca95.tar.gz |
isalpha() is unspecified for values outside uchar and EOF
Task-number: QTBUG-8907
Diffstat (limited to 'tools/linguist/linguist')
-rw-r--r-- | tools/linguist/linguist/mainwindow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/linguist/linguist/mainwindow.cpp b/tools/linguist/linguist/mainwindow.cpp index 6e5c6566ba..321fe8ca8b 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 |