Index: libc/string/wcschr.c =================================================================== RCS file: /cvs/src/src/newlib/libc/string/wcschr.c,v retrieving revision 1.2 diff -u -p -r1.2 wcschr.c --- libc/string/wcschr.c 3 Sep 2002 19:52:10 -0000 1.2 +++ libc/string/wcschr.c 14 Mar 2003 19:35:01 -0000 @@ -69,14 +69,13 @@ _DEFUN (wcschr, (s, c), _CONST wchar_t *p; p = s; - while (*p) + do { if (*p == c) { /* LINTED interface specification */ return (wchar_t *) p; } - p++; - } + } while (*p++); return NULL; }