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/kadmin | |
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/kadmin')
-rw-r--r-- | src/kadmin/ktutil/ktutil_funcs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kadmin/ktutil/ktutil_funcs.c b/src/kadmin/ktutil/ktutil_funcs.c index 6fa2a30..e3e9204 100644 --- a/src/kadmin/ktutil/ktutil_funcs.c +++ b/src/kadmin/ktutil/ktutil_funcs.c @@ -172,7 +172,7 @@ krb5_error_code ktutil_add(context, list, princ_str, kvno, goto cleanup; memset(password.data, 0, password.length); password.length = 0; - memcpy(&lp->entry->key, &key, sizeof(krb5_keyblock)); + lp->entry->key = key; } else { printf("Key for %s (hex): ", princ_str); fgets(buf, BUFSIZ, stdin); |