summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-12-16 20:55:41 +0000
committerai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-12-16 20:55:41 +0000
commit0cbf5d3429e72b56980c41611cdb798179f0366b (patch)
tree0e3fcf274b4a19456cf2e493959172f78f89c8ca /src/common
parent75249417a0a7e234485ae763b6de8a3517ad77f9 (diff)
downloadhercules-0cbf5d3429e72b56980c41611cdb798179f0366b.tar.gz
hercules-0cbf5d3429e72b56980c41611cdb798179f0366b.tar.bz2
hercules-0cbf5d3429e72b56980c41611cdb798179f0366b.tar.xz
hercules-0cbf5d3429e72b56980c41611cdb798179f0366b.zip
* Fixed a mistake in sv_split, causing CR being recognized as EOL character, even when only LF was specified (since r12459).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14594 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/common')
-rw-r--r--src/common/strlib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/strlib.c b/src/common/strlib.c
index 633d6d45b..bb1f67fdb 100644
--- a/src/common/strlib.c
+++ b/src/common/strlib.c
@@ -657,7 +657,7 @@ int sv_split(char* str, int len, int startoff, char delim, char** out_fields, in
end[0] = end[1] = '\0';
*out_fields = end + 2;
}
- else if( (opt&SV_TERMINATE_LF) && end[0] == '\r' )
+ else if( (opt&SV_TERMINATE_CR) && end[0] == '\r' )
{
if( !(opt&SV_KEEP_TERMINATOR) )
end[0] = '\0';