[PD-cvs] pd/src x_interface.c,1.3.6.2,1.3.6.3

Hans-Christoph Steiner eighthave at users.sourceforge.net
Tue Dec 4 22:54:48 CET 2007


Update of /cvsroot/pure-data/pd/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22478

Modified Files:
      Tag: branch-v0-40-extended
	x_interface.c 
Log Message:

- fixed bug that caused garbage to sometimes be displayed, I forgot to add a
  NULL to the string from binbuf_gettext()

- fixed bug where "print" wasn't showing in the console if there were no
  arguments, I need to change the if/else test condition.


Index: x_interface.c
===================================================================
RCS file: /cvsroot/pure-data/pd/src/x_interface.c,v
retrieving revision 1.3.6.2
retrieving revision 1.3.6.3
diff -C2 -d -r1.3.6.2 -r1.3.6.3
*** x_interface.c	26 Nov 2007 05:53:29 -0000	1.3.6.2
--- x_interface.c	4 Dec 2007 21:54:46 -0000	1.3.6.3
***************
*** 21,29 ****
      char *buf;
      t_print *x = (t_print *)pd_new(print_class);
!     if (*s->s_name)
      {
          t_binbuf *bb = binbuf_new();
          binbuf_add(bb, argc, argv);
          binbuf_gettext(bb, &buf, &bufsize);
          x->x_sym = gensym(buf);
          binbuf_free(bb);
--- 21,30 ----
      char *buf;
      t_print *x = (t_print *)pd_new(print_class);
!     if (argc)
      {
          t_binbuf *bb = binbuf_new();
          binbuf_add(bb, argc, argv);
          binbuf_gettext(bb, &buf, &bufsize);
+         buf[bufsize] = 0;
          x->x_sym = gensym(buf);
          binbuf_free(bb);





More information about the Pd-cvs mailing list