diff options
author | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-04-17 10:50:28 +0000 |
---|---|---|
committer | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-04-17 10:50:28 +0000 |
commit | 1ab4f1bc8045feef435858fadb27dd2e2ce111b4 (patch) | |
tree | 14de572cf00bdd7b17eb54eae685cafa31153542 /src/common/strlib.c | |
parent | 716257704ecd543d1099e9f0c191347023f38f5a (diff) | |
download | hercules-1ab4f1bc8045feef435858fadb27dd2e2ce111b4.tar.gz hercules-1ab4f1bc8045feef435858fadb27dd2e2ce111b4.tar.bz2 hercules-1ab4f1bc8045feef435858fadb27dd2e2ce111b4.tar.xz hercules-1ab4f1bc8045feef435858fadb27dd2e2ce111b4.zip |
Modified sv_readdb to be able to process non-native line terminators (bugreport:1382)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12610 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/common/strlib.c')
-rw-r--r-- | src/common/strlib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/strlib.c b/src/common/strlib.c index 0f440ff54..8947821df 100644 --- a/src/common/strlib.c +++ b/src/common/strlib.c @@ -832,7 +832,7 @@ bool sv_readdb(const char* directory, const char* filename, char delim, int minc if( line[0] == '\0' || line[0] == '\n' ) continue; - columns = sv_split(line, strlen(line), 0, delim, fields, ARRAYLENGTH(fields), SV_NOESCAPE_NOTERMINATE); + columns = sv_split(line, strlen(line), 0, delim, fields, ARRAYLENGTH(fields), (e_svopt)(SV_TERMINATE_LF|SV_TERMINATE_CRLF)); if( columns < mincols ) { |