diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2007-11-28 04:55:33 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2007-11-28 04:55:33 +0000 |
commit | a0a74ee36d6e0c1491d53f7fe2183819fc68e795 (patch) | |
tree | 9441f7b17aa07c4cda1c5f6032ee128b68f894c3 | |
parent | 73fda06aaea59b81d1eadde0408ca4dc1b433996 (diff) |
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
-rw-r--r-- | stat.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -38,7 +38,7 @@ #include <sys/stat.h> #include <errno.h> -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); } |