--- MPlayer-0.90pre9/asxparser.c.orig Fri Oct 25 16:03:35 2002 +++ MPlayer-0.90pre9/asxparser.c Fri Oct 25 16:04:58 2002 @@ -211,11 +211,11 @@ val[ptr2-ptr1] = '\0'; n_attrib++; - attribs = (char**)realloc(attribs,2*n_attrib*sizeof(char*)+1); + attribs = (char**)realloc(attribs,(2*n_attrib+1)*sizeof(char*)); attribs[n_attrib*2-2] = attrib; attribs[n_attrib*2-1] = val; - ptr1 = ptr2+2; + ptr1 = ptr2+1; } if(n_attrib > 0)