Commit 3cf58d70 authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

fix buffer overflow

parent cfcdec29
......@@ -75,13 +75,12 @@ static void list2binbuf(t_binbuf**bbuf, int *n, char**str, int argc,
binbuf_clear(*bbuf);
binbuf_add(*bbuf, argc, argv);
binbuf_gettext(*bbuf, str, n);
i=*n;
s=*str;
binbuf_gettext(*bbuf, str, &i);
if(s && ' '==s[i]) {
s[i]=0;
}
s = t_resizebytes(*str, i, i+1);
s[i] = 0;
*str = s;
*n = i+1;
}
static void strcmp_list(t_strcmp *x, t_symbol* UNUSED(s), int argc,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment