No void* operations.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3059 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -473,7 +473,6 @@ krb5_error_code
|
||||
encode_v4_ticket(void *buf, size_t len, EncTicketPart *et,
|
||||
PrincipalName *service, size_t *size)
|
||||
{
|
||||
unsigned char *p = buf;
|
||||
krb5_storage *sp;
|
||||
krb5_error_code ret;
|
||||
char name[40], inst[40], realm[40];
|
||||
@@ -548,8 +547,8 @@ encode_v4_ticket(void *buf, size_t len, EncTicketPart *et,
|
||||
*size = (data.length + 7) & ~7; /* pad to 8 bytes */
|
||||
if(*size > len)
|
||||
return -1;
|
||||
memset(buf - *size + 1, 0, *size);
|
||||
memcpy(buf - *size + 1, data.data, data.length);
|
||||
memset((unsigned char*)buf - *size + 1, 0, *size);
|
||||
memcpy((unsigned char*)buf - *size + 1, data.data, data.length);
|
||||
krb5_data_free(&data);
|
||||
}
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user