diff options
author | Ken Raeburn <raeburn@mit.edu> | 2009-02-03 16:38:34 +0000 |
---|---|---|
committer | Ken Raeburn <raeburn@mit.edu> | 2009-02-03 16:38:34 +0000 |
commit | 8cdc021dbb86b76a37e79e636248c5020eb8ab1d (patch) | |
tree | 6036adc40aab363c2597a7f24f8c07fa9cf97861 /src/lib/kadm5/srv | |
parent | d431a41a7a0f44ff2d0e5c69fb8a6901f72d0b55 (diff) | |
download | krb5-8cdc021dbb86b76a37e79e636248c5020eb8ab1d.zip krb5-8cdc021dbb86b76a37e79e636248c5020eb8ab1d.tar.gz krb5-8cdc021dbb86b76a37e79e636248c5020eb8ab1d.tar.bz2 |
prefer structure assignment to memcpy
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21876 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/kadm5/srv')
-rw-r--r-- | src/lib/kadm5/srv/svr_principal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/kadm5/srv/svr_principal.c b/src/lib/kadm5/srv/svr_principal.c index c44463b..4ee842f 100644 --- a/src/lib/kadm5/srv/svr_principal.c +++ b/src/lib/kadm5/srv/svr_principal.c @@ -56,7 +56,7 @@ kadm5_copy_principal(krb5_context context, krb5_const_principal inprinc, krb5_pr return ENOMEM; VALGRIND_CHECK_DEFINED(*inprinc); - memcpy(tempprinc, inprinc, sizeof(krb5_principal_data)); + *tempprinc = *inprinc; nelems = (int) krb5_princ_size(context, inprinc); tempprinc->data = krb5_db_alloc(context, NULL, nelems * sizeof(krb5_data)); |