Add missing typecast for memset

This commit is contained in:
Jarno Lamsa 2019-10-01 15:20:13 +03:00
parent d82e559a48
commit 21d6a201ee

View File

@ -88,7 +88,8 @@ void mbedtls_platform_memset( void *ptr, int value, size_t num )
/* Perform a pair of memset operations from random locations with
* random data */
memset( ( void * ) ( ptr + startOffset ), value, ( num - startOffset ) );
memset( ( void * ) ( ( unsigned char * ) ptr + startOffset ), value,
( num - startOffset ) );
memset( ( void * ) ptr, data, startOffset );
/* Perform the original memset */