aboutsummaryrefslogtreecommitdiff
path: root/src/makesymbol.c
diff options
context:
space:
mode:
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));
}