summaryrefslogtreecommitdiff
path: root/lib/libc/string
diff options
context:
space:
mode:
authordsl <dsl@NetBSD.org>2005-06-04 20:09:56 +0000
committerdsl <dsl@NetBSD.org>2005-06-04 20:09:56 +0000
commit217446d2aa4497bd8b6b3864acc54b048b489586 (patch)
tree73e613a23f67e2313705474907a74264e0d5f35b /lib/libc/string
parent3ed9ffcae1bd6b60d4a638355c0e185cd9966e02 (diff)
Only advance 'p' once each time around the loop....
Diffstat (limited to 'lib/libc/string')
-rw-r--r--lib/libc/string/wcschr.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/libc/string/wcschr.c b/lib/libc/string/wcschr.c
index 0f250201615..9808ae3ffd4 100644
--- a/lib/libc/string/wcschr.c
+++ b/lib/libc/string/wcschr.c
@@ -1,4 +1,4 @@
-/* $NetBSD: wcschr.c,v 1.3 2005/05/30 06:00:01 christos Exp $ */
+/* $NetBSD: wcschr.c,v 1.4 2005/06/04 20:09:56 dsl Exp $ */
/*-
* Copyright (c)1999 Citrus Project,
@@ -30,7 +30,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: wcschr.c,v 1.3 2005/05/30 06:00:01 christos Exp $");
+__RCSID("$NetBSD: wcschr.c,v 1.4 2005/06/04 20:09:56 dsl Exp $");
#endif /* LIBC_SCCS and not lint */
#include <assert.h>
@@ -48,7 +48,6 @@ wcschr(const wchar_t *p, wchar_t c)
}
if (!*p)
return NULL;
- p++;
}
/*NOTREACHED*/
}