diff options
author | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2010-03-11 19:46:51 (GMT) |
---|---|---|
committer | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2010-03-11 19:48:30 (GMT) |
commit | e6134f1bb7e77d6c1441a03e4829351f3f3bca95 (patch) | |
tree | 2bbfcdfb022e0eade4258c4995806763a223a416 /tools | |
parent | f4053c19b3e5584f97cfb0eb14d4b488259291b4 (diff) | |
download | Qt-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.cpp | 2 |
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 |