projects
/
NeonServV5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed renameAccount function (merging mode)
[NeonServV5.git]
/
src
/
ConfigParser.c
diff --git
a/src/ConfigParser.c
b/src/ConfigParser.c
index bbf479131800b177e0331cc9828f4c4791057d89..5d32afccb2811127ae05d8a1278c770e5c9702d6 100644
(file)
--- a/
src/ConfigParser.c
+++ b/
src/ConfigParser.c
@@
-1,4
+1,4
@@
-/* ConfigParser.c - NeonServ v5.
3
+/* ConfigParser.c - NeonServ v5.
6
* Copyright (C) 2011-2012 Philipp Kreil (pk910)
*
* This program is free software: you can redistribute it and/or modify
* Copyright (C) 2011-2012 Philipp Kreil (pk910)
*
* This program is free software: you can redistribute it and/or modify
@@
-156,9
+156,15
@@
static char *parse_config_recursive(struct ConfigEntry *centry, char *buffer, in
}
if(flags & PARSER_FLAG_COMMAND) {
int found_command = 0;
}
if(flags & PARSER_FLAG_COMMAND) {
int found_command = 0;
+ char *tmp_buffer;
switch(*buffer) {
case '/':
switch(*buffer) {
case '/':
- buffer = strstr(buffer, "\n");
+ tmp_buffer = buffer;
+ buffer = strchr(buffer, '\r');
+ if(!buffer)
+ buffer = strchr(tmp_buffer, '\n');
+ if(!buffer)
+ buffer = tmp_buffer + strlen(tmp_buffer)-1;
found_command = 1;
break;
case '*':
found_command = 1;
break;
case '*':