From 7873dd1a71b9eac5f08ef35fd3ce0c844e9a54c8 Mon Sep 17 00:00:00 2001 From: "N.N." Date: Wed, 7 Apr 2004 19:57:12 +0000 Subject: parsing old format max files svn path=/trunk/externals/miXed/; revision=1564 --- cyclone/hammer/zl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cyclone') 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; -- cgit v1.2.1