Update of /cvsroot/pure-data/pd/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20609
Modified Files: Tag: desiredata desire.c Log Message: fix bug added in last commit
Index: desire.c =================================================================== RCS file: /cvsroot/pure-data/pd/src/Attic/desire.c,v retrieving revision 1.1.2.217.2.138 retrieving revision 1.1.2.217.2.139 diff -C2 -d -r1.1.2.217.2.138 -r1.1.2.217.2.139 *** desire.c 28 Jun 2007 07:31:08 -0000 1.1.2.217.2.138 --- desire.c 28 Jun 2007 07:53:10 -0000 1.1.2.217.2.139 *************** *** 7759,7767 **** void post(const char *fmt, ...) { char *buf; va_list ap; va_start(ap, fmt); ! vasprintf(&buf, fmt, ap); va_end(ap); strcat(buf, "\n"); dopost(buf); } void startpost(const char *fmt, ...) { char *buf; va_list ap; va_start(ap, fmt); ! vasprintf(&buf, fmt, ap); va_end(ap); dopost(buf); }
--- 7759,7767 ---- void post(const char *fmt, ...) { char *buf; va_list ap; va_start(ap, fmt); ! vasprintf(&buf, fmt, ap); va_end(ap); strcat(buf, "\n"); dopost(buf); free(buf); } void startpost(const char *fmt, ...) { char *buf; va_list ap; va_start(ap, fmt); ! vasprintf(&buf, fmt, ap); va_end(ap); dopost(buf); free(buf); }
*************** *** 7873,7880 **** extern "C" void glob_closeall(void *dummy, t_floatarg fforce) { t_canvas *y; ! for (t_canvas *x = canvas_list; x; ) { y = x->gl_next; canvas_close(x); /* forced closing of this root canvas */ - x = y; } } --- 7873,7879 ---- extern "C" void glob_closeall(void *dummy, t_floatarg fforce) { t_canvas *y; ! for (t_canvas *x = canvas_list; x; x=y) { y = x->gl_next; canvas_close(x); /* forced closing of this root canvas */ } }