mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 13:37:00 +00:00
[7157] Fixed config file parsing for not ascii characters.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
0798b151cc
commit
625f94ab35
2 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "7156"
|
||||
#define REVISION_NR "7157"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue