mirror of https://github.com/BOINC/boinc.git
Client/manager: isspace() throws an exception on Win for non-ASCII chars.
Check isascii() first.
This commit is contained in:
parent
951f16d960
commit
69b0748ada
|
@ -112,7 +112,7 @@ struct XML_PARSER {
|
|||
while (1) {
|
||||
c = f->_getc();
|
||||
if (!c || c == EOF) return true;
|
||||
if (isspace(c)) continue;
|
||||
if (isascii(c) && isspace(c)) continue;
|
||||
first_char = c;
|
||||
return false;
|
||||
}
|
||||
|
@ -173,7 +173,7 @@ struct XML_PARSER {
|
|||
if (attr_buf) *attr_buf = 0;
|
||||
return XML_PARSE_TAG;
|
||||
}
|
||||
if (isspace(c)) {
|
||||
if (isascii(c) && isspace(c)) {
|
||||
if (found_space && attr_buf) {
|
||||
if (--attr_len > 0) {
|
||||
*attr_buf++ = c;
|
||||
|
|
Loading…
Reference in New Issue