Mercurial > mplayer.hg
diff libmpdemux/muxer.c @ 18366:d18fc000093d
100000l to the fools who don't know C
These were all found while auditing for malloc(A*B) type bugs.
Removing them makes it easier to find real incorrect usage and makes
the code more readable.
author | rfelker |
---|---|
date | Mon, 01 May 2006 02:04:09 +0000 |
parents | e5dbddb8d3f6 |
children | 4928dd61f136 |
line wrap: on
line diff
--- a/libmpdemux/muxer.c Sun Apr 30 22:28:15 2006 +0000 +++ b/libmpdemux/muxer.c Mon May 01 02:04:09 2006 +0000 @@ -82,7 +82,7 @@ buf->pts= pts; buf->len = len; buf->flags = flags; - buf->buffer = malloc(len * sizeof (unsigned char)); + buf->buffer = malloc(len); if (!buf->buffer) { mp_msg(MSGT_MUXER, MSGL_FATAL, MSGTR_MuxbufMallocErr); return;