----- "Hans-Christoph Steiner" <[email protected]> a écrit : > Arg, this stuff is maddening. If you look at scalar_properties() in > g_scalar.c, you'll see Miller does the opposite with that resize, the > > +1 is in the new size, not the old. I think I'll try it like that. > > binbuf_add(bb, argc, argv); > binbuf_gettext(bb, &buf, &bufsize); > buf = t_resizebytes(buf, bufsize, bufsize+1); > buf[bufsize] = 0; > x->x_sym = gensym(buf); > binbuf_free(bb);
no crash, no extra character, this seem to be the good method _______________________________________________ [email protected] mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
