diff options
author | Ulrich Drepper <drepper@redhat.com> | 1998-01-30 12:53:20 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1998-01-30 12:53:20 +0000 |
commit | 4775243aa82ab568abe247e24ca56143683d64c2 (patch) | |
tree | affd0441d950fa21730d358e936169b81281ba7a /sysdeps/generic | |
parent | cd897fe7c6c132e47d910d593ee330809d41d84a (diff) | |
download | glibc-4775243aa82ab568abe247e24ca56143683d64c2.tar glibc-4775243aa82ab568abe247e24ca56143683d64c2.tar.gz glibc-4775243aa82ab568abe247e24ca56143683d64c2.tar.bz2 glibc-4775243aa82ab568abe247e24ca56143683d64c2.zip |
Update.
1998-01-28 Andreas Jaeger <aj@arthur.rhein-neckar.de>
* manual/memory.texi (Heap Consistency Checking): mcheck is
declared in <mcheck.h>.
Suggested by Jochen Voss <voss@mathematik.uni-kl.de> [PR libc/438]
1998-01-28 Andreas Jaeger <aj@arthur.rhein-neckar.de>
* sysdeps/generic/memmem.c (memmem): An empty needle is at the
beginning of haystack.
1998-01-29 Andreas Jaeger <aj@arthur.rhein-neckar.de>
* nss/nss_files/files-service.c: Correct last patch.
1998-01-30 21:29 Ulrich Drepper <drepper@cygnus.com>
* sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Define
__libc_have_rt_sigs.
* sysdeps/sparc/sparc32/__longjmp.S: Define _SETJMP_H before
including <bits/setjmp.h>.
* sysdeps/sparc/sparc32/setjmp.S: Likewise.
Patch from the Debian glibc/SPARC package.
1997-12-12 07:57 H.J. Lu <hjl@gnu.org>
* sysdeps/alpha/bzero.S: Fix a typo.
* sysdeps/alpha/htonl.S: Ditto.
* sysdeps/alpha/htons.S: Ditto.
Diffstat (limited to 'sysdeps/generic')
-rw-r--r-- | sysdeps/generic/memmem.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sysdeps/generic/memmem.c b/sysdeps/generic/memmem.c index 9e4e342237..482ab6aa0b 100644 --- a/sysdeps/generic/memmem.c +++ b/sysdeps/generic/memmem.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 92, 93, 94, 96, 97 Free Software Foundation, Inc. +/* Copyright (C) 1991, 92, 93, 94, 96, 97, 98 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 @@ -35,8 +35,8 @@ memmem (haystack, haystack_len, needle, needle_len) if (needle_len == 0) /* The first occurrence of the empty string is deemed to occur at - the end of the string. */ - return (void *) &((const char *) haystack)[haystack_len - 1]; + the beginning of the string. */ + return (void *) &((const char *) haystack); for (begin = (const char *) haystack; begin <= last_possible; ++begin) if (begin[0] == ((const char *) needle)[0] && |