Skip to content
Snippets Groups Projects
Commit 223c422b authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

prevent a buffer overflow

parent 9f9c835e
No related branches found
No related tags found
No related merge requests found
......@@ -321,7 +321,8 @@ static void *vcf_filter_tilde_new(t_symbol *filt_typ)
x->x_wn1 = 0.0;
x->x_wn2 = 0.0;
c = (char *)filt_typ->s_name;
c[5] = 0;
if (strlen(c) > 5)
c[5] = 0;
strcpy(x->x_filtname, c);
return(x);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment