From: Ezra Peisach Date: Thu, 9 Nov 2000 20:33:14 +0000 (+0000) Subject: * dyn_create.c (DynCopy): Arguments to memcpy were reversed. Found X-Git-Tag: krb5-1.3-alpha1~1751 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=99c231612748ef951d0530f30816ae4a02dec0c9;p=krb5.git * 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 --- 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;