Commit a919ac44 authored by Richard Diamond's avatar Richard Diamond Committed by Jean-Baptiste Kempf

vlc_md5.h: Fix inclusion in c++

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent cafcb977
......@@ -47,11 +47,11 @@ VLC_API void EndMD5( struct md5_s * );
*/
static inline char * psz_md5_hash( struct md5_s *md5_s )
{
char *psz = malloc( 33 ); /* md5 string is 32 bytes + NULL character */
char *psz = (char*)malloc( 33 ); /* md5 string is 32 bytes + NULL character */
if( likely(psz) )
{
for( int i = 0; i < 16; i++ )
sprintf( &psz[2*i], "%02"PRIx8, md5_s->buf[i] );
sprintf( &psz[2*i], "%02" PRIx8, md5_s->buf[i] );
}
return psz;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment