From: Ken Raeburn Date: Thu, 15 Jun 2006 20:49:27 +0000 (+0000) Subject: Use assignment rather than memcpy to get an int value from a byte. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b45c6948e3a2ac44d3b1e2e3b3627d5871a89f72;p=thirdparty%2Fkrb5.git Use assignment rather than memcpy to get an int value from a byte. (From Will Fiveash.) git-svn-id: svn://anonsvn.mit.edu/krb5/branches/ldap-integ@18144 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/plugins/kdb/ldap/libkdb_ldap/ldap_misc.c b/src/plugins/kdb/ldap/libkdb_ldap/ldap_misc.c index 798724a358..153a3c63e6 100644 --- a/src/plugins/kdb/ldap/libkdb_ldap/ldap_misc.c +++ b/src/plugins/kdb/ldap/libkdb_ldap/ldap_misc.c @@ -648,7 +648,7 @@ decode_tl_data(tl_data, tl_type, data) while(curr < (tl_data->tl_data_contents + tl_data->tl_data_length)) { /* get the type of the content */ - memset(&subtype, curr[0], 1); + subtype = (int) curr[0]; /* forward by 1 byte*/ curr += 1;