Multi-locale DBC extracting

Signed-off-by: Foks <Foks@mangos.ru>

Small related code fixed and cleanups.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
Foks 2008-11-06 06:14:46 +03:00 committed by VladimirMangos
parent ef8e864008
commit cdb2c08e3f
7 changed files with 101 additions and 75 deletions

View file

@ -79,7 +79,7 @@ int libmpq_conf_parse_line(char *line, char *search_value, char *return_value, i
}
/* now search for comment in this line */
for (i = 0; i < strlen(line); i++) {
for (i = 0; i < int(strlen(line)); i++) {
if (line[i] == '#') {
pos = i - 1;
break;