aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormusil <tmusil@users.sourceforge.net>2006-11-09 18:48:30 +0000
committermusil <tmusil@users.sourceforge.net>2006-11-09 18:48:30 +0000
commit0812089fa06f5fb6cf2f4993ca226bd2c901e65d (patch)
treeb16776cb2117bf553cdf61194b62fdcb62f5dca7 /src
parent970a06e6cab8dbb536d0e13d4e571d4fa3c08eb3 (diff)
changed maxsize of symbol strings
svn path=/trunk/externals/iemlib/; revision=6242
Diffstat (limited to 'src')
-rw-r--r--src/iemlib2/mergefilename.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/iemlib2/mergefilename.c b/src/iemlib2/mergefilename.c
index e47a54f..ddf06ff 100644
--- a/src/iemlib2/mergefilename.c
+++ b/src/iemlib2/mergefilename.c
@@ -6,7 +6,6 @@ iemlib2 written by Thomas Musil, Copyright (c) IEM KUG Graz Austria 2000 - 2005
#include "m_pd.h"
#include "iemlib.h"
-#include <stdlib.h>
#include <string.h>
#include <stdio.h>
@@ -95,7 +94,7 @@ static void mergefilename_list(t_mergefilename *x, t_symbol *s, int ac, t_atom *
strcat(x->x_mem, x->x_sep);
}
- if(IS_A_SYMBOL(av, i))
+ if(IS_A_SYMBOL(av, 0))
{
length = strlen(av->a_w.w_symbol->s_name);
if((accu_size + length) > (MAXPDSTRING - 2))
@@ -110,7 +109,7 @@ static void mergefilename_list(t_mergefilename *x, t_symbol *s, int ac, t_atom *
accu_size += length;
}
}
- else if(IS_A_FLOAT(av, i))
+ else if(IS_A_FLOAT(av, 0))
{
sprintf(flt_buf, "%g", av->a_w.w_float);
length = strlen(flt_buf);
@@ -126,6 +125,7 @@ static void mergefilename_list(t_mergefilename *x, t_symbol *s, int ac, t_atom *
accu_size += length;
}
}
+ av++;
}
}
outlet_symbol(x->x_obj.ob_outlet, gensym(x->x_mem));
@@ -155,7 +155,7 @@ static void mergefilename_anything(t_mergefilename *x, t_symbol *s, int ac, t_at
for(i=0; i<ac; i++)
{
strcat(x->x_mem, x->x_sep);
- if(IS_A_SYMBOL(av, i))
+ if(IS_A_SYMBOL(av, 0))
{
length = strlen(av->a_w.w_symbol->s_name);
if((accu_size + length) > (MAXPDSTRING - 2))
@@ -170,7 +170,7 @@ static void mergefilename_anything(t_mergefilename *x, t_symbol *s, int ac, t_at
accu_size += length;
}
}
- else if(IS_A_FLOAT(av, i))
+ else if(IS_A_FLOAT(av, 0))
{
sprintf(flt_buf, "%g", av->a_w.w_float);
length = strlen(flt_buf);
@@ -186,6 +186,7 @@ static void mergefilename_anything(t_mergefilename *x, t_symbol *s, int ac, t_at
accu_size += length;
}
}
+ av++;
}
}
outlet_symbol(x->x_obj.ob_outlet, gensym(x->x_mem));