[PD-cvs] externals/hcs stat.c,1.4,1.5

Hans-Christoph Steiner eighthave at users.sourceforge.net
Wed Nov 28 05:55:35 CET 2007


Update of /cvsroot/pure-data/externals/hcs
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13232

Modified Files:
	stat.c 
Log Message:
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...

Index: stat.c
===================================================================
RCS file: /cvsroot/pure-data/externals/hcs/stat.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** stat.c	14 Jun 2006 23:38:05 -0000	1.4
--- stat.c	28 Nov 2007 04:55:33 -0000	1.5
***************
*** 118,121 ****
--- 118,122 ----
  static void stat_output_error(t_stat *x)
  {
+ 	DEBUG(post("stat_output_error"););
  	t_atom output_atoms[2];
  	switch(errno)
***************
*** 171,175 ****
  		SETSYMBOL(output_atoms, gensym("unknown"));
  	}
! 	SETSYMBOL(output_atoms + 2, x->x_filename);
  	outlet_anything(x->x_status_outlet, gensym("error"), 2, output_atoms);
  }
--- 172,176 ----
  		SETSYMBOL(output_atoms, gensym("unknown"));
  	}
! 	SETSYMBOL(output_atoms + 1, x->x_filename);
  	outlet_anything(x->x_status_outlet, gensym("error"), 2, output_atoms);
  }





More information about the Pd-cvs mailing list