diff options
author | Ulrich Drepper <drepper@redhat.com> | 1998-03-18 17:57:13 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1998-03-18 17:57:13 +0000 |
commit | 7551a1e5100c596793fa182cd26346ff971d3a4f (patch) | |
tree | f3c959a1c55505681669ebeb43fbeb5251eb6da5 /sysdeps/generic | |
parent | 3116126871400c8737a9df0145f66534f097c06c (diff) | |
download | glibc-7551a1e5100c596793fa182cd26346ff971d3a4f.tar.gz glibc-7551a1e5100c596793fa182cd26346ff971d3a4f.tar.xz glibc-7551a1e5100c596793fa182cd26346ff971d3a4f.zip |
Update.
1998-03-18 Andreas Jaeger <aj@arthur.rhein-neckar.de> * manual/memory.texi (Heap Consistency Checking): Document MALLOC_CHECK_. Based on a text by Wolfram Gloger. 1998-03-18 17:11 Zack Weinberg <zack@rabi.phys.columbia.edu> * manual/Makefile: Add missing rules. 1998-03-18 Ulrich Drepper <drepper@cygnus.com> * timezone/Makefile (generated): Define to remove all stamp files. * sysdeps/generic/strsep.c: Also undefine __strsep. * string/strdup.c: Undefine __strdup and strdup first. * string/strndup.c: Likewise. * string/bits/string2.h: Correct strtok_r and strsep. Add strndup optimization. * sysdeps/generic/strsep.c: Little optimization.
Diffstat (limited to 'sysdeps/generic')
-rw-r--r-- | sysdeps/generic/strsep.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sysdeps/generic/strsep.c b/sysdeps/generic/strsep.c index 1c20eb0959..7ca44f3c3a 100644 --- a/sysdeps/generic/strsep.c +++ b/sysdeps/generic/strsep.c @@ -18,6 +18,7 @@ #include <string.h> +#undef __strsep #undef strsep char * @@ -43,7 +44,7 @@ __strsep (char **stringp, const char *delim) if (*begin == ch) end = begin; else - end = strchr (begin, delim[0]); + end = strchr (begin + 1, ch); } } else |