ruby-changes:37413
From: nobu <ko1@a...>
Date: Wed, 4 Feb 2015 17:35:21 +0900 (JST)
Subject: [ruby-changes:37413] nobu:r49494 (trunk): _sdbm.c: fix pointers to shift
nobu 2015-02-04 17:35:08 +0900 (Wed, 04 Feb 2015) New Revision: 49494 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=49494 Log: _sdbm.c: fix pointers to shift * ext/sdbm/_sdbm.c (delpair): dst and src point at the ends of each data, whereas memmove requires pointers to the beginnings. Modified files: trunk/ext/sdbm/_sdbm.c Index: ext/sdbm/_sdbm.c =================================================================== --- ext/sdbm/_sdbm.c (revision 49493) +++ ext/sdbm/_sdbm.c (revision 49494) @@ -802,7 +802,7 @@ delpair(char *pag, datum key) https://github.com/ruby/ruby/blob/trunk/ext/sdbm/_sdbm.c#L802 } #else #ifdef MEMMOVE - memmove(dst, src, m); + memmove(dst-m, src-m, m); #else while (m--) *--dst = *--src; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/