From 88540e248e68388fdea438e7b64e9e63f2ad5dcf Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Fri, 8 Jul 2005 18:28:46 +0000 Subject: 2005-07-08 Ola Hugosson * libc/string/wcsspn.c (wcsspn): Add missing increment of q. --- newlib/libc/string/wcsspn.c | 1 + 1 file changed, 1 insertion(+) (limited to 'newlib/libc/string') diff --git a/newlib/libc/string/wcsspn.c b/newlib/libc/string/wcsspn.c index f0b2fb99f..b54804c45 100644 --- a/newlib/libc/string/wcsspn.c +++ b/newlib/libc/string/wcsspn.c @@ -75,6 +75,7 @@ _DEFUN (wcsspn, (s, set), { if (*p == *q) break; + q++; } if (!*q) goto done; -- cgit v1.2.3