[MPlayer-cvslog] r18861 - in trunk: mplayer.c subreader.c
Reynaldo H. Verdejo Pinochet
reynaldo at opendot.cl
Sat Jul 1 00:19:07 CEST 2006
On Fri, Jun 30, 2006 at 09:49:55AM +0200, Nico Sabbi wrote:
> reynaldo wrote:
> >Modified: trunk/subreader.c
> >==============================================================================
> >--- trunk/subreader.c (original)
> >+++ trunk/subreader.c Fri Jun 30 06:09:29 2006
> >@@ -1218,7 +1218,7 @@
> > if(log2vis) {
> > len = fribidi_remove_bidi_marks (visual, len, NULL, NULL,
> > NULL);
> >- if((op = (char*)malloc(sizeof(char)*(max(2*orig_len,2*len) + 1)))
> >== NULL) {
> >+ if((op = (char*)malloc((max(2*orig_len,2*len) + 1))) == NULL) {
> > mp_msg(MSGT_SUBREADER,MSGL_WARN,"SUB: error allocating mem.\n");
> > l++;
> > break;
> >@@ -1314,7 +1314,7 @@
> > char *detected_sub_cp = NULL;
> > int i;
> >
> >- buffer = (unsigned char*)malloc(MAX_GUESS_BUFFER_SIZE*sizeof(char));
> >+ buffer = (unsigned char*)malloc(MAX_GUESS_BUFFER_SIZE);
> > buflen = stream_read(st,buffer, MAX_GUESS_BUFFER_SIZE);
> >
> >
>
> you forgot the cast here
>
hehe, I lefted void* casting for the next sweep ;)
Reynaldo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-cvslog/attachments/20060630/371435e4/attachment.pgp>
More information about the MPlayer-cvslog
mailing list