[PD] strcmp (zexy) bug ?

IOhannes m zmoelnig zmoelnig at iem.at
Fri Feb 10 16:15:44 CET 2006


Georg Holzmann wrote:
> Hallo!
> 
> one small correction:
> 
>> [list ha ha(
>>  |
>> [t l l]
>>  |   |
>> [strcmp]
> 
> 
> [list ha ha( from above is always 0 ...
> but not e.g. [list bla bla sdf(
> (as in the attached patch)

thanks.
actually you discovered a bug with memory-freeing.
i wonder, why it didn't crash your pd (like it did with mine)

it is now fixed in the cvs.

basically, in line 73 you have to replace:

  if(*str&&*n)freebytes(str, *n);

by

  if(*str&&*n)freebytes(*str, *n);


mf.a.sdr
IOhannes




More information about the Pd-list mailing list