]> granicus.if.org Git - libass/commitdiff
The size of output buffer is stored in 'osize', not 'size'.
authoreugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2>
Thu, 29 May 2008 18:35:22 +0000 (18:35 +0000)
committereugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2>
Thu, 29 May 2008 18:35:22 +0000 (18:35 +0000)
This is just for readability, the code behaviour is not changed.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26924 b3059339-0415-0410-9bf9-f77b7e298cf2

libass/ass.c

index c5323289a71839819f1fe57b118594ee6a9ba4a9..55a4a79b7fcd3b10c67a13857e2e423c4a237655 100644 (file)
@@ -848,7 +848,7 @@ static char* sub_recode(char* data, size_t size, char* codepage)
                size_t rc;
                int clear = 0;
                
-               outbuf = malloc(size);
+               outbuf = malloc(osize);
                ip = data;
                op = outbuf;