[PD-dev] [ pure-data-Bugs-1359216 ] print character 123 freezes gui

Hans-Christoph Steiner hans at eds.org
Sun Dec 4 17:27:21 CET 2005


On Dec 3, 2005, at 3:08 AM, Mathieu Bouchard wrote:

> 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);

Any chance of getting this as a diff -uw against pd MAIN?

.hc

________________________________________________________________________ 
____

            "The arc of history bends towards justice."
                                            - Dr. Martin Luther King, Jr.





More information about the Pd-dev mailing list