aboutsummaryrefslogtreecommitdiff
path: root/cyclone
diff options
context:
space:
mode:
authorN.N. <krzyszcz@users.sourceforge.net>2004-04-07 19:57:12 +0000
committerN.N. <krzyszcz@users.sourceforge.net>2004-04-07 19:57:12 +0000
commit7873dd1a71b9eac5f08ef35fd3ce0c844e9a54c8 (patch)
treeaeabfb0d818067c7051608dc7db69fd15476dfc4 /cyclone
parentdbd3ec671dec8ea39032d3b0b56387df40c66c28 (diff)
parsing old format max files
svn path=/trunk/externals/miXed/; revision=1564
Diffstat (limited to 'cyclone')
-rw-r--r--cyclone/hammer/zl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cyclone/hammer/zl.c b/cyclone/hammer/zl.c
index 3b00b48..1c4c7a5 100644
--- a/cyclone/hammer/zl.c
+++ b/cyclone/hammer/zl.c
@@ -440,14 +440,14 @@ static void zl_nth(t_zl *x, int natoms, t_atom *buf, int banged)
t_atom at = av1[ndx];
if (buf)
{
- int ac2 = x->x_inbuf2.d_natoms, ntail = ac1 - ndx + 1;
+ int ac2 = x->x_inbuf2.d_natoms, ntail = ac1 - ndx - 1;
t_atom *ptr = buf;
if (ndx)
{
memcpy(ptr, av1, ndx * sizeof(*buf));
ptr += ndx;
}
- if (ac2)
+ if (ac2) /* replacement */
{
memcpy(ptr, x->x_inbuf2.d_buf, ac2 * sizeof(*buf));
ptr += ac2;