From 99c231612748ef951d0530f30816ae4a02dec0c9 Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Thu, 9 Nov 2000 20:33:14 +0000 Subject: [PATCH] * dyn_create.c (DynCopy): Arguments to memcpy were reversed. Found while playing with lclint. DynCopy is not used in our tree. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12867 dc483132-0cff-0310-8789-dd5450dbe970 --- src/util/dyn/ChangeLog | 5 +++++ src/util/dyn/dyn_create.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/util/dyn/ChangeLog b/src/util/dyn/ChangeLog index 7257ae0ab..f16c5ee3e 100644 --- a/src/util/dyn/ChangeLog +++ b/src/util/dyn/ChangeLog @@ -1,3 +1,8 @@ +Thu Nov 9 15:31:31 2000 Ezra Peisach + + * dyn_create.c (DynCopy): Arguments to memcpy were reversed. Found + while playing with lclint. + 2000-11-09 Ezra Peisach * Makefile.in (check-unix): Built and execture dyntest. diff --git a/src/util/dyn/dyn_create.c b/src/util/dyn/dyn_create.c index 237986d5d..ec2ba6296 100644 --- a/src/util/dyn/dyn_create.c +++ b/src/util/dyn/dyn_create.c @@ -67,7 +67,7 @@ DynObjectP DynCopy(obj) free(obj1); return NULL; } - memcpy(obj->array, obj1->array, + memcpy(obj1->array, obj->array, (size_t) (obj1->el_size * obj1->size)); return obj1; -- 2.26.2