From 33888aa431a7f9a9449c55c17b5e6d8fb476ac30 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 18 Nov 2015 05:51:09 +0100 Subject: m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/wchar/wcscspn.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wchar/wcscspn.c b/src/wchar/wcscspn.c index f32af00..5ef1769 100644 --- a/src/wchar/wcscspn.c +++ b/src/wchar/wcscspn.c @@ -33,11 +33,11 @@ */ size_t wcscspn(const wchar_t* string, const wchar_t* stopset) { - size_t i, end = wcslen(string); + size_t i; wchar_t* s; wchar_t c; while ((c = *stopset++)) - for (i = 0, s = string; *s && (i < end); i++, s++) + for (s = string; *s; s++) if (*s == c) { end = (size_t)(s - string); -- cgit v1.2.3-70-g09d2