krb5 commit: Don't use void * arithmetic in interposed_oid
Greg Hudson
ghudson at MIT.EDU
Sat Oct 13 11:44:46 EDT 2012
https://github.com/krb5/krb5/commit/4098aec2e902e1666310a15b45eaf57163727a35
commit 4098aec2e902e1666310a15b45eaf57163727a35
Author: Greg Hudson <ghudson at mit.edu>
Date: Sat Oct 13 10:58:14 2012 -0400
Don't use void * arithmetic in interposed_oid
src/lib/gssapi/mechglue/g_initialize.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/lib/gssapi/mechglue/g_initialize.c b/src/lib/gssapi/mechglue/g_initialize.c
index b4cc4da..62c59ea 100644
--- a/src/lib/gssapi/mechglue/g_initialize.c
+++ b/src/lib/gssapi/mechglue/g_initialize.c
@@ -818,7 +818,8 @@ interposed_oid(gss_OID pre, gss_OID real)
}
memcpy(o->elements, pre->elements, pre->length);
- memcpy(o->elements + pre->length, real->elements, real->length);
+ memcpy((char *)o->elements + pre->length, real->elements,
+ real->length);
return o;
}
More information about the cvs-krb5
mailing list