Skip to content

Commit

Permalink
vlc_md5.h: Fix inclusion in c++
Browse files Browse the repository at this point in the history
Signed-off-by: Jean-Baptiste Kempf <[email protected]>
  • Loading branch information
DiamondLovesYou authored and jbkempf committed Jun 29, 2016
1 parent cafcb97 commit a919ac4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/vlc_md5.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit a919ac4

Please sign in to comment.