[PD-dev] [ pure-data-Bugs-1359216 ] print character 123 freezes gui
Mathieu Bouchard
matju at artengine.ca
Sat Dec 3 09:08:12 CET 2005
On Sat, 3 Dec 2005, Thomas Grill wrote:
> > fixed in DesireData today.
> Hi Mathieu,
> since DesireData is not actually usable, could you post a patch or outline
> what the solution looks like so that it can be fixed in PD?
char t[MAXPDSTRING];
int i,j=0;
for(i=0; s[i] && j<MAXPDSTRING-16; i++) {
if (index("\\\"[]$\n",s[i])) t[j++]='\\';
t[j++] = s[i]=='\n' ? 'n' : s[i];
}
t[j] = 0;
sys_vgui("pdtk_post \"%s\"\n",t);
____________________________________________________________________
Mathieu Bouchard - tél:+1.514.383.3801 - http://artengine.ca/matju
Freelance Digital Arts Engineer, Montréal QC Canada
More information about the Pd-dev
mailing list