From a0a74ee36d6e0c1491d53f7fe2183819fc68e795 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Wed, 28 Nov 2007 04:55:33 +0000 Subject: fixed stat crasher bug, I was adding 2 to the pointer rather than 1; it blows my mind that this worked fine some of the time, and seems to work fine on Mac OS X all of the time, crazy pointers... svn path=/trunk/externals/hcs/; revision=9062 --- stat.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'stat.c') diff --git a/stat.c b/stat.c index c40eb27..d34525e 100644 --- a/stat.c +++ b/stat.c @@ -38,7 +38,7 @@ #include #include -static char *version = "$Revision: 1.4 $"; +static char *version = "$Revision: 1.5 $"; t_int stat_instance_count; @@ -117,6 +117,7 @@ static void reset_output(t_stat *x) static void stat_output_error(t_stat *x) { + DEBUG(post("stat_output_error");); t_atom output_atoms[2]; switch(errno) { @@ -170,7 +171,7 @@ static void stat_output_error(t_stat *x) error("[stat]: unknown error %d: %s", errno, x->x_filename->s_name); SETSYMBOL(output_atoms, gensym("unknown")); } - SETSYMBOL(output_atoms + 2, x->x_filename); + SETSYMBOL(output_atoms + 1, x->x_filename); outlet_anything(x->x_status_outlet, gensym("error"), 2, output_atoms); } -- cgit v1.2.1