summaryrefslogtreecommitdiffstats
path: root/lib/libc/string/wcsspn.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/string/wcsspn.c')
-rw-r--r--lib/libc/string/wcsspn.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libc/string/wcsspn.c b/lib/libc/string/wcsspn.c
index 69aa628..42dd1e6 100644
--- a/lib/libc/string/wcsspn.c
+++ b/lib/libc/string/wcsspn.c
@@ -49,6 +49,7 @@ wcsspn(s, set)
while (*q) {
if (*p == *q)
break;
+ q++;
}
if (!*q)
goto done;
OpenPOWER on IntegriCloud