Update of /cvsroot/pure-data/pd/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25128
Modified Files: Tag: devel_0_39 g_rtext.c Log Message: fixed buggy reallocation
Index: g_rtext.c =================================================================== RCS file: /cvsroot/pure-data/pd/src/g_rtext.c,v retrieving revision 1.4.8.6 retrieving revision 1.4.8.7 diff -C2 -d -r1.4.8.6 -r1.4.8.7 *** g_rtext.c 30 Nov 2005 13:36:57 -0000 1.4.8.6 --- g_rtext.c 23 Jun 2006 17:59:40 -0000 1.4.8.7 *************** *** 316,320 **** s2 < ebuf; s1++, s2++) *s1 = *s2; ! t_resizebytes(x->x_buf, bufsize, text->te_width); bufsize = text->te_width; goto done; --- 316,320 ---- s2 < ebuf; s1++, s2++) *s1 = *s2; ! x->x_buf = t_resizebytes(x->x_buf, bufsize, text->te_width); bufsize = text->te_width; goto done; *************** *** 322,326 **** /* give up and bash it to "+" or "-" */ x->x_buf[0] = (atomp->a_w.w_float < 0 ? '-' : '+'); ! t_resizebytes(x->x_buf, bufsize, 1); bufsize = 1; } --- 322,326 ---- /* give up and bash it to "+" or "-" */ x->x_buf[0] = (atomp->a_w.w_float < 0 ? '-' : '+'); ! x->x_buf = t_resizebytes(x->x_buf, bufsize, 1); bufsize = 1; } *************** *** 328,332 **** { x->x_buf[text->te_width - 1] = '>'; ! t_resizebytes(x->x_buf, bufsize, text->te_width); bufsize = text->te_width; } --- 328,332 ---- { x->x_buf[text->te_width - 1] = '>'; ! x->x_buf = t_resizebytes(x->x_buf, bufsize, text->te_width); bufsize = text->te_width; }