summaryrefslogtreecommitdiffstats
path: root/lib/libc/string/wcsspn.c
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2001-11-10 17:36:58 +0000
committerdes <des@FreeBSD.org>2001-11-10 17:36:58 +0000
commitbb36960b9a289ffb38341f1f12f498eb65af8932 (patch)
treef156de439a5877a7e0869e9ef6097c3fb19380a1 /lib/libc/string/wcsspn.c
parentf58db955281aa7fb14e2c158fa87ebca30e0442a (diff)
downloadFreeBSD-src-bb36960b9a289ffb38341f1f12f498eb65af8932.zip
FreeBSD-src-bb36960b9a289ffb38341f1f12f498eb65af8932.tar.gz
Increment the loop counter.
PR: bin/29218 Submitted by: Goran Lowkrantz <goran.lowkrantz@ismobile.com>
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