Update of /cvsroot/pure-data/externals/zexy/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14299
Modified Files: list2symbol.c Log Message: fixed bug that wrongly guessed the size of the new symbol (lead to crashes)
Index: list2symbol.c =================================================================== RCS file: /cvsroot/pure-data/externals/zexy/src/list2symbol.c,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** list2symbol.c 23 Aug 2005 12:25:37 -0000 1.4 --- list2symbol.c 31 Aug 2005 09:57:51 -0000 1.5 *************** *** 59,68 **** while(i--){ char buffer[MAXPDSTRING]; if(A_SYMBOL==argv->a_type){ ! length+=strlen(argv->a_w.w_symbol->s_name); } else { ! atom_string(argv++, buffer, MAXPDSTRING); ! length+=strlen(buffer); } }
--- 59,71 ---- while(i--){ char buffer[MAXPDSTRING]; + int len=0; if(A_SYMBOL==argv->a_type){ ! len=strlen(argv->a_w.w_symbol->s_name); } else { ! atom_string(argv, buffer, MAXPDSTRING); ! len=strlen(buffer); } + length+=len; + argv++; }