From 625f94ab35bd3f0c36f513910c152d88c26f19a4 Mon Sep 17 00:00:00 2001 From: mcben Date: Sat, 24 Jan 2009 01:44:25 +0300 Subject: [PATCH] [7157] Fixed config file parsing for not ascii characters. Signed-off-by: VladimirMangos --- src/shared/Config/dotconfpp/dotconfpp.cpp | 4 ++-- src/shared/revision_nr.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/shared/Config/dotconfpp/dotconfpp.cpp b/src/shared/Config/dotconfpp/dotconfpp.cpp index 1c5e667b1..5dbfe0226 100644 --- a/src/shared/Config/dotconfpp/dotconfpp.cpp +++ b/src/shared/Config/dotconfpp/dotconfpp.cpp @@ -138,7 +138,7 @@ int DOTCONFDocument::cleanupLine(char * line) quoted = !quoted; ++line; continue; } - if(isspace(*line) && !quoted){ + if(isspace((unsigned char)*line) && !quoted){ *bg++ = 0; if(strlen(start)){ @@ -154,7 +154,7 @@ int DOTCONFDocument::cleanupLine(char * line) words.push_back(word); } start = bg; - while(isspace(*++line)) {} + while(isspace((unsigned char)*++line)) {} continue; } diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index b2d5c9c85..4ef3779b2 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "7156" + #define REVISION_NR "7157" #endif // __REVISION_NR_H__