From 053845e60bc1f6143e7c50aa10069a18405c2161 Mon Sep 17 00:00:00 2001 From: "N.N." Date: Thu, 14 Aug 2003 14:26:06 +0000 Subject: *** empty log message *** svn path=/trunk/externals/miXed/; revision=845 --- shared/common/binport.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'shared/common/binport.c') diff --git a/shared/common/binport.c b/shared/common/binport.c index 05cc5df..c886955 100644 --- a/shared/common/binport.c +++ b/shared/common/binport.c @@ -452,7 +452,8 @@ int binport_read(t_binbuf *bb, char *filename, char *dirname) { t_atom at; while (binport_nextatom(bp, &at)) - binbuf_add(bb, 1, &at); + if (at.a_type != A_NULL) + binbuf_add(bb, 1, &at); binport_free(bp); return (BINPORT_OK); } @@ -534,7 +535,7 @@ int main(int ac, char **av) fputs(";\n", stdout); ac = 0; } - else + else if (at.a_type != A_NULL) { if (ac++) fputc(' ', stdout); binport_atomstring(&at, buf, BINPORT_MAXSTRING); -- cgit v1.2.1