From fd6fc182230d0440fc698e118514dd635c533fc8 Mon Sep 17 00:00:00 2001 From: Miller Puckette Date: Thu, 24 Aug 2006 15:23:52 +0000 Subject: sync for pd 0.40-0test05. Bug fix (empty DSP chains crashed Pd). svn path=/trunk/; revision=5730 --- pd/src/m_binbuf.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'pd/src/m_binbuf.c') diff --git a/pd/src/m_binbuf.c b/pd/src/m_binbuf.c index 4bea4942..3d417560 100644 --- a/pd/src/m_binbuf.c +++ b/pd/src/m_binbuf.c @@ -169,7 +169,7 @@ void binbuf_text(t_binbuf *x, char *text, size_t size) dollar = 0; if (dollar) SETDOLLAR(ap, atoi(buf+1)); - else post("dollsym %s", buf), SETDOLLSYM(ap, gensym(buf)); + else SETDOLLSYM(ap, gensym(buf)); } else SETSYMBOL(ap, gensym(buf)); } @@ -649,8 +649,11 @@ void binbuf_eval(t_binbuf *x, t_pd *target, int argc, t_atom *argv) s9 = binbuf_realizedollsym(at->a_w.w_symbol, argc, argv, target == &pd_objectmaker); if (!s9) - goto broken; - SETSYMBOL(msp, s9); + { + error("%s: argument number out of range", at->a_w.w_symbol->s_name); + SETSYMBOL(msp, at->a_w.w_symbol); + } + else SETSYMBOL(msp, s9); break; default: bug("bad item in binbuf"); -- cgit v1.2.1