From c161d704f7629b78a08e53468e12637be1491436 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Sun, 16 Oct 2011 20:12:55 +0200 Subject: core: use value 2 of keep_eol in function string_split to keep separators at end of string --- src/core/wee-string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/core/wee-string.c b/src/core/wee-string.c index 49d9c6bf3..2ffeb583e 100644 --- a/src/core/wee-string.c +++ b/src/core/wee-string.c @@ -860,7 +860,7 @@ string_split (const char *string, const char *separators, int keep_eol, if (!string || !string[0] || !separators || !separators[0]) return NULL; - string2 = string_strip (string, 1, 1, separators); + string2 = string_strip (string, 1, (keep_eol == 2) ? 0 : 1, separators); if (!string2 || !string2[0]) return NULL; -- cgit v1.2.3