aboutsummaryrefslogtreecommitdiffstats
path: root/src/wchar
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-11-18 05:51:09 +0100
committerMattias Andrée <maandree@operamail.com>2015-11-18 05:51:09 +0100
commit33888aa431a7f9a9449c55c17b5e6d8fb476ac30 (patch)
tree46dce179a6d13b4f71a949ebf21ab0b52ab1adab /src/wchar
parentupdate todo (diff)
downloadslibc-33888aa431a7f9a9449c55c17b5e6d8fb476ac30.tar.gz
slibc-33888aa431a7f9a9449c55c17b5e6d8fb476ac30.tar.bz2
slibc-33888aa431a7f9a9449c55c17b5e6d8fb476ac30.tar.xz
m
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/wchar')
-rw-r--r--src/wchar/wcscspn.c4
1 files 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);