diff options
Diffstat (limited to 'pd/src/x_gui.c')
-rw-r--r-- | pd/src/x_gui.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pd/src/x_gui.c b/pd/src/x_gui.c index 9538fedc..d2d47ae1 100644 --- a/pd/src/x_gui.c +++ b/pd/src/x_gui.c @@ -44,7 +44,7 @@ static t_gfxstub *gfxstub_list; void gfxstub_new(t_pd *owner, void *key, const char *cmd) { - char buf[MAXPDSTRING]; + char buf[4*MAXPDSTRING]; char namebuf[80]; t_gfxstub *x; t_symbol *s; @@ -52,9 +52,10 @@ void gfxstub_new(t_pd *owner, void *key, const char *cmd) for (x = gfxstub_list; x; x = x->x_next) if (x->x_key == key) gfxstub_deleteforkey(key); - if (strlen(cmd) + 50 > MAXPDSTRING) + if (strlen(cmd) + 50 > 4*MAXPDSTRING) { bug("audio dialog too long"); + bug("%x", cmd); return; } x = (t_gfxstub *)pd_new(gfxstub_class); |