From 082895e3cc9421238356a5185d6762d4cdc9a0ac Mon Sep 17 00:00:00 2001 From: Mark Eichin Date: Wed, 28 Jun 1995 04:23:17 +0000 Subject: [PATCH] * dbtest.c (xmalloc): use memcpy, memmove isn't needed. * 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 | 8 ++++++++ src/util/berk_db/test/configure.in | 2 +- src/util/berk_db/test/dbtest.c | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/util/berk_db/test/ChangeLog b/src/util/berk_db/test/ChangeLog index 684859fcb..f0e93f26d 100644 --- a/src/util/berk_db/test/ChangeLog +++ b/src/util/berk_db/test/ChangeLog @@ -1,3 +1,11 @@ +Wed Jun 28 00:19:52 1995 Mark Eichin + + * dbtest.c (xmalloc): use memcpy, memmove isn't needed. + +Wed Jun 28 00:17:44 1995 Mark Eichin + + * configure.in: use AC_CHECK_FUNCS for index, and check for memmove. + Wed Jun 28 00:04:07 1995 Mark Eichin * run.test: look in /usr/share/lib/dict/words to find the words diff --git a/src/util/berk_db/test/configure.in b/src/util/berk_db/test/configure.in index 6bf30517d..9a45e997a 100644 --- a/src/util/berk_db/test/configure.in +++ b/src/util/berk_db/test/configure.in @@ -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 diff --git a/src/util/berk_db/test/dbtest.c b/src/util/berk_db/test/dbtest.c index d26b53b3a..7a2e47b58 100644 --- a/src/util/berk_db/test/dbtest.c +++ b/src/util/berk_db/test/dbtest.c @@ -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); } -- 2.26.2