From 0387eff711dd84f5ef97edd3d5d51a599ecbd899 Mon Sep 17 00:00:00 2001 From: Dag-Erling Smørgrav Date: Tue, 27 Nov 2001 13:39:22 +0000 Subject: MFC: Increment the loop counter. --- lib/libc/string/wcsspn.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/libc/string') diff --git a/lib/libc/string/wcsspn.c b/lib/libc/string/wcsspn.c index 40b583b3eb55..dcdb9bf640c1 100644 --- a/lib/libc/string/wcsspn.c +++ b/lib/libc/string/wcsspn.c @@ -52,6 +52,7 @@ wcsspn(s, set) while (*q) { if (*p == *q) break; + q++; } if (!*q) goto done; -- cgit v1.3