aboutsummaryrefslogtreecommitdiff
path: root/stat.c
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2007-11-28 04:55:33 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2007-11-28 04:55:33 +0000
commita0a74ee36d6e0c1491d53f7fe2183819fc68e795 (patch)
tree9441f7b17aa07c4cda1c5f6032ee128b68f894c3 /stat.c
parent73fda06aaea59b81d1eadde0408ca4dc1b433996 (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
Diffstat (limited to 'stat.c')
-rw-r--r--stat.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/stat.c b/stat.c
index c40eb27..d34525e 100644
--- a/stat.c
+++ b/stat.c
@@ -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);
}