]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Use assignment rather than memcpy to get an int value from a byte.
authorKen Raeburn <raeburn@mit.edu>
Thu, 15 Jun 2006 20:49:27 +0000 (20:49 +0000)
committerKen Raeburn <raeburn@mit.edu>
Thu, 15 Jun 2006 20:49:27 +0000 (20:49 +0000)
(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

index 798724a35802d091a0c7b13c2108efd551d865c9..153a3c63e674128dea9b6e10c5f59e09b6773431 100644 (file)
@@ -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;