about summary refs log tree commit diff
path: root/sysdeps/generic/strtok.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-05-03 23:49:46 +0000
committerUlrich Drepper <drepper@redhat.com>1999-05-03 23:49:46 +0000
commit9f509acb28ecbebb1bf25069fd60219bc85971ac (patch)
tree03785f5c9c9d3665a686a6c12343a0d5a70ffce3 /sysdeps/generic/strtok.c
parente0faeea74fc885c53f03b1cc3a3b90aef51185ce (diff)
downloadglibc-9f509acb28ecbebb1bf25069fd60219bc85971ac.tar.gz
glibc-9f509acb28ecbebb1bf25069fd60219bc85971ac.tar.xz
glibc-9f509acb28ecbebb1bf25069fd60219bc85971ac.zip
Update.
	* sysdeps/generic/strtok_r.c: Use rawmemchr instead of strchr.
	* sysdeps/generic/strtok.c: Likewise.
Diffstat (limited to 'sysdeps/generic/strtok.c')
-rw-r--r--sysdeps/generic/strtok.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/generic/strtok.c b/sysdeps/generic/strtok.c
index b366653cb3..6aeeb5a646 100644
--- a/sysdeps/generic/strtok.c
+++ b/sysdeps/generic/strtok.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1996, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 1996, 1997, 1999 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -52,7 +52,7 @@ strtok (s, delim)
   s = strpbrk (token, delim);
   if (s == NULL)
     /* This token finishes the string.  */
-    olds = strchr (token, '\0');
+    olds = __rawmemchr (token, '\0');
   else
     {
       /* Terminate the token and make OLDS point past it.  */