aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/list2symbol.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/list2symbol.c b/src/list2symbol.c
index 34b3f5b..1c77c34 100644
--- a/src/list2symbol.c
+++ b/src/list2symbol.c
@@ -58,12 +58,15 @@ static void list2symbol_bang(t_list2symbol *x)
while(i--){
char buffer[MAXPDSTRING];
+ int len=0;
if(A_SYMBOL==argv->a_type){
- length+=strlen(argv->a_w.w_symbol->s_name);
+ len=strlen(argv->a_w.w_symbol->s_name);
} else {
- atom_string(argv++, buffer, MAXPDSTRING);
- length+=strlen(buffer);
+ atom_string(argv, buffer, MAXPDSTRING);
+ len=strlen(buffer);
}
+ length+=len;
+ argv++;
}
if (length<=0){