aboutsummaryrefslogtreecommitdiff
path: root/pd/src/x_gui.c
diff options
context:
space:
mode:
authorMiller Puckette <millerpuckette@users.sourceforge.net>2005-10-15 23:14:28 +0000
committerMiller Puckette <millerpuckette@users.sourceforge.net>2005-10-15 23:14:28 +0000
commit9ac980fd47d057cccd89eb52909bd2afec79569a (patch)
tree84594bdc9f730e873c051d3085317827610b00fc /pd/src/x_gui.c
parentc23dc858c7362d6f72b797e5d06f3f81280d67b9 (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.c5
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);