From cbe02221cdb6ebd4d2510667d773118729f5b051 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Fri, 13 Jan 2012 12:06:50 +0000 Subject: [PATCH] replace calls to isspace() with is_space() to avoid asserts in the CRT --- include/libtorrent/xml_parse.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/libtorrent/xml_parse.hpp b/include/libtorrent/xml_parse.hpp index f509c90ea..cd5ee9e70 100644 --- a/include/libtorrent/xml_parse.hpp +++ b/include/libtorrent/xml_parse.hpp @@ -175,11 +175,11 @@ namespace libtorrent for (char* i = tag_name_end; i < tag_end; ++i) { // find start of attribute name - for (; i != tag_end && isspace(*i); ++i); + for (; i != tag_end && is_space(*i); ++i); if (i == tag_end) break; start = i; // find end of attribute name - for (; i != tag_end && *i != '=' && !isspace(*i); ++i); + for (; i != tag_end && *i != '=' && !is_space(*i); ++i); char* name_end = i; // look for equality sign @@ -195,7 +195,7 @@ namespace libtorrent } ++i; - for (; i != tag_end && isspace(*i); ++i); + for (; i != tag_end && is_space(*i); ++i); // check for parse error (values must be quoted) if (i == tag_end || (*i != '\'' && *i != '\"')) {