From b45c6948e3a2ac44d3b1e2e3b3627d5871a89f72 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Thu, 15 Jun 2006 20:49:27 +0000 Subject: [PATCH] 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 --- src/plugins/kdb/ldap/libkdb_ldap/ldap_misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.47.2