From 0cbf5d3429e72b56980c41611cdb798179f0366b Mon Sep 17 00:00:00 2001 From: ai4rei Date: Thu, 16 Dec 2010 20:55:41 +0000 Subject: * 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 --- src/common/strlib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/common') 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'; -- cgit v1.2.3-70-g09d2