Mercurial > gnulib
changeset 20345:df55b58a877c
Oops. Always return destination.
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Tue, 16 Jul 1996 03:06:32 +0000 |
parents | 17b56511ee5f |
children | 8e96368731cb |
files | lib/memmove.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/memmove.c Mon Jul 15 03:56:06 1996 +0000 +++ b/lib/memmove.c Tue Jul 16 03:06:32 1996 +0000 @@ -13,6 +13,7 @@ const char *source; unsigned length; { + char *d0 = dest; if (source < dest) /* Moving from low mem to hi mem; start at end. */ for (source += length, dest += length; length; --length) @@ -22,7 +23,6 @@ /* Moving from hi mem to low mem; start at beginning. */ for (; length; --length) *dest++ = *source++; - --dest; } - return (void *) dest; + return (void *) d0; }