# HG changeset patch # User henry # Date 1139741464 0 # Node ID c7d0f6322721a56e9c77c4f0f9529fa6e29b8ff0 # Parent 4b8193d51bda4800dbd19b754df3d26d6cc15994 forgotten cast (blows on gcc4) diff -r 4b8193d51bda -r c7d0f6322721 libmpdemux/demuxer.h --- a/libmpdemux/demuxer.h Sun Feb 12 09:58:27 2006 +0000 +++ b/libmpdemux/demuxer.h Sun Feb 12 10:51:04 2006 +0000 @@ -190,7 +190,7 @@ dp->flags=0; dp->refcount=1; dp->master=NULL; - if (len > 0 && (dp->buffer = malloc(len + 8))) + if (len > 0 && (dp->buffer = (unsigned char *)malloc(len + 8))) memset(dp->buffer + len, 0, 8); else dp->len = 0;