aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2008-06-12 09:04:56 +0000
committerIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2008-06-12 09:04:56 +0000
commit5ab2cdf139a1fd8cd4c9700970dc08c1c25820d8 (patch)
treee5a1c50929ca16d76314b2d65fdc2c43db905201
parentdbf1d8a0a60da256b323a8dd189c3c6551f82f3f (diff)
more compatibility with [pack] (that's important on Pd>=0.42)
svn path=/trunk/externals/zexy/; revision=9983
-rw-r--r--src/pack.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/pack.c b/src/pack.c
index 39ae244..cf65f46 100644
--- a/src/pack.c
+++ b/src/pack.c
@@ -59,8 +59,9 @@ static void zpack_bang(t_zpack*x) {
}
static void zpack_list0(t_zpack*x, t_symbol *s, int argc, t_atom *argv) {
- if(argc>0)
- setatom(x, argv, 0);
+ int i=0;
+ for(i=0; i<argc && i<x->x_argc; i++)
+ setatom(x, argv+i, i);
zpack_bang(x);
}