diff --git a/ext/sdbm/_sdbm.c b/ext/sdbm/_sdbm.c index a1705613a9..b9ee6c3972 100644 --- a/ext/sdbm/_sdbm.c +++ b/ext/sdbm/_sdbm.c @@ -802,7 +802,7 @@ delpair(char *pag, datum key) } #else #ifdef MEMMOVE - memmove(dst, src, m); + memmove(dst-m, src-m, m); #else while (m--) *--dst = *--src;