summaryrefslogtreecommitdiffstats
path: root/src/lib/gssapi/spnego/spnego_mech.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/gssapi/spnego/spnego_mech.c')
-rw-r--r--src/lib/gssapi/spnego/spnego_mech.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/gssapi/spnego/spnego_mech.c b/src/lib/gssapi/spnego/spnego_mech.c
index 5321de0bef..3a6653caf0 100644
--- a/src/lib/gssapi/spnego/spnego_mech.c
+++ b/src/lib/gssapi/spnego/spnego_mech.c
@@ -2374,7 +2374,7 @@ put_mech_oid(unsigned char **buf_out, gss_OID_const mech, unsigned int buflen)
return (-1);
*(*buf_out)++ = MECH_OID;
*(*buf_out)++ = (unsigned char) mech->length;
- memcpy((void *)(*buf_out), mech->elements, mech->length);
+ memcpy(*buf_out, mech->elements, mech->length);
*buf_out += mech->length;
return (0);
}