* dbtest.c (xmalloc): use memcpy, memmove isn't needed.
authorMark Eichin <eichin@mit.edu>
Wed, 28 Jun 1995 04:23:17 +0000 (04:23 +0000)
committerMark Eichin <eichin@mit.edu>
Wed, 28 Jun 1995 04:23:17 +0000 (04:23 +0000)
* configure.in: use AC_CHECK_FUNCS for index, and check for memmove.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6180 dc483132-0cff-0310-8789-dd5450dbe970

src/util/berk_db/test/ChangeLog
src/util/berk_db/test/configure.in
src/util/berk_db/test/dbtest.c

index 684859fcb049142713562923d3d07ea713a51ca9..f0e93f26d2740d379fc2d0ba3e3fca21bffebb86 100644 (file)
@@ -1,3 +1,11 @@
+Wed Jun 28 00:19:52 1995  Mark Eichin  <eichin@cygnus.com>
+
+       * dbtest.c (xmalloc): use memcpy, memmove isn't needed.
+
+Wed Jun 28 00:17:44 1995  Mark Eichin  <eichin@cygnus.com>
+
+       * configure.in: use AC_CHECK_FUNCS for index, and check for memmove.
+
 Wed Jun 28 00:04:07 1995  Mark Eichin  <eichin@cygnus.com>
 
        * run.test: look in /usr/share/lib/dict/words to find the words
index 6bf30517dd1d0e620c78ac22fbb43972513d1652..9a45e997a484ef6bb06402442579c5b27d9a4866 100644 (file)
@@ -7,5 +7,5 @@ dnl
 CDEFS_INCLUDE=['-I$(PORTDIR)']
 AC_HAVE_HEADERS(sys/cdefs.h, CDEFS_INCLUDE=)
 AC_SUBST(CDEFS_INCLUDE)
-AC_FUNC_CHECK(index,AC_DEFINE(HAVE_INDEX))
+AC_CHECK_FUNCS(index memmove)
 V5_AC_OUTPUT_MAKEFILE
index d26b53b3ad083ed784a6de96288edf36c65b72cc..7a2e47b58b9f52df08ed708cd1e7cf2428bd09c7 100644 (file)
@@ -722,7 +722,7 @@ xmalloc(text, len)
 
        if ((p = (void *)malloc(len)) == NULL)
                err("%s", strerror(errno));
-       memmove(p, text, len);
+       memcpy(p, text, len);
        return (p);
 }