projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
783c162
)
Oops. Always return destination.
author
Jim Meyering
<jim@meyering.net>
Tue, 16 Jul 1996 03:06:32 +0000
(
03:06
+0000)
committer
Jim Meyering
<jim@meyering.net>
Tue, 16 Jul 1996 03:06:32 +0000
(
03:06
+0000)
lib/memmove.c
patch
|
blob
|
history
diff --git
a/lib/memmove.c
b/lib/memmove.c
index a5bf7660aa7b5a48fcf9825273ee60ada55aa72b..d070796fdbb4b470c822c7cfd0f13bf9b811e545 100644
(file)
--- a/
lib/memmove.c
+++ b/
lib/memmove.c
@@
-13,6
+13,7
@@
memmove (dest, source, length)
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
@@
memmove (dest, source, length)
/* Moving from hi mem to low mem; start at beginning. */
for (; length; --length)
*dest++ = *source++;
- --dest;
}
- return (void *) d
est
;
+ return (void *) d
0
;
}