[7157] Fixed config file parsing for not ascii characters.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
mcben 2009-01-24 01:44:25 +03:00 committed by VladimirMangos
parent 0798b151cc
commit 625f94ab35
2 changed files with 3 additions and 3 deletions

View file

@ -138,7 +138,7 @@ int DOTCONFDocument::cleanupLine(char * line)
quoted = !quoted; quoted = !quoted;
++line; continue; ++line; continue;
} }
if(isspace(*line) && !quoted){ if(isspace((unsigned char)*line) && !quoted){
*bg++ = 0; *bg++ = 0;
if(strlen(start)){ if(strlen(start)){
@ -154,7 +154,7 @@ int DOTCONFDocument::cleanupLine(char * line)
words.push_back(word); words.push_back(word);
} }
start = bg; start = bg;
while(isspace(*++line)) {} while(isspace((unsigned char)*++line)) {}
continue; continue;
} }

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "7156" #define REVISION_NR "7157"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__