diff options
author | Miller Puckette <millerpuckette@users.sourceforge.net> | 2005-10-15 23:14:28 +0000 |
---|---|---|
committer | Miller Puckette <millerpuckette@users.sourceforge.net> | 2005-10-15 23:14:28 +0000 |
commit | 9ac980fd47d057cccd89eb52909bd2afec79569a (patch) | |
tree | 84594bdc9f730e873c051d3085317827610b00fc /pd/src/x_gui.c | |
parent | c23dc858c7362d6f72b797e5d06f3f81280d67b9 (diff) |
Bug fixes, notably for mac if no audio input device is available; also
worked around a problem in ASIO support on MSW (but need to fix it better.)
svn path=/trunk/; revision=3717
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); |