aboutsummaryrefslogtreecommitdiff
path: root/src/makesymbol.c
diff options
context:
space:
mode:
authorIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2005-12-14 19:00:57 +0000
committerIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2005-12-14 19:00:57 +0000
commit3c9bd9a5254151dfca7d7dee0338fb09700be4dc (patch)
treee4a872c47186a894a425b6e40ed77d76d018ad87 /src/makesymbol.c
parent0f22ff9ed0f57e7ac6848e015659e652b5096bd0 (diff)
removed implicit use of alloca (my mingw-X-compiler couldn't cope with that)
svn path=/trunk/externals/zexy/; revision=4213
Diffstat (limited to 'src/makesymbol.c')
-rw-r--r--src/makesymbol.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/makesymbol.c b/src/makesymbol.c
index 3c4ada6..e361c80 100644
--- a/src/makesymbol.c
+++ b/src/makesymbol.c
@@ -55,11 +55,12 @@ static void reset_mask(t_makesymbol *x, t_symbol *s)
}
}
+typedef char cstring[MAXSTRINGLENG];
+
t_symbol* list2symbol(char *masque, int argc, t_atom *argv)
{
- typedef char cstring[MAXSTRINGLENG];
-
- cstring buf[MAXSTRINGARGS];
+ // cstring buf[MAXSTRINGARGS];
+ cstring*buf=(cstring*)getbytes(MAXSTRINGARGS*sizeof(cstring));
cstring buffer;
int i;
@@ -73,6 +74,7 @@ t_symbol* list2symbol(char *masque, int argc, t_atom *argv)
masque,
buf[0], buf[1], buf[2], buf[3], buf[4], buf[5], buf[6], buf[7], buf[8], buf[9]);
+ freebytes(buf, MAXSTRINGARGS*sizeof(cstring));
return (gensym(buffer));
}