Mercurial > hg > octave-lojdl > gnulib-hg
changeset 654:6470fee04491
Oops. Always return destination.
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Tue, 16 Jul 1996 03:06:32 +0000 |
parents | b63f146fd963 |
children | c57bb9e67aab |
files | lib/memmove.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/memmove.c +++ b/lib/memmove.c @@ -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; }