diff options
author | jdl <x75@users.sourceforge.net> | 2002-09-03 10:08:40 +0000 |
---|---|---|
committer | jdl <x75@users.sourceforge.net> | 2002-09-03 10:08:40 +0000 |
commit | b913efcb4aee1d83c8c2331de4d692622f18959c (patch) | |
tree | 287cccfeb8de3119fef8fcd21c897be69843fb75 | |
parent | 189c0787586602185fea7dcbc3ef37665b75ba45 (diff) |
refixed MAXPDARG vs. MAX_ARGS in sendOSC causing segfault with more than 5
elements in the message.
svn path=/trunk/externals/OSCx/; revision=105
-rw-r--r-- | OSC/makefile | 6 | ||||
-rw-r--r-- | OSC/sendOSC.c | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/OSC/makefile b/OSC/makefile index 8534bc9..04b0317 100644 --- a/OSC/makefile +++ b/OSC/makefile @@ -1,6 +1,6 @@ ############################### # change these -IFLAGS = -I. -I../../pd-0.34-4/src +IFLAGS = -I. -I../../../src/pd-0.35-0/src INSTALL_PREFIX=/usr # should be oke below .. @@ -14,8 +14,8 @@ AFLAGS = LFLAGS = -export_dynamic -shared WFLAGS = -# DEBUG = -DDEBUG -g -DEBUG = +DEBUG = -DDEBUG -g +# DEBUG = VERSION = \"$(shell cat VERSION)\" diff --git a/OSC/sendOSC.c b/OSC/sendOSC.c index ce4e6ee..c039c86 100644 --- a/OSC/sendOSC.c +++ b/OSC/sendOSC.c @@ -50,7 +50,7 @@ University of California, Berkeley. //#define VERSION "http://cnmat.berkeley.edu/OpenSoundControl/sendOSC-0.1.html"
#define MAX_ARGS 2000
-#define SC_BUFFER_SIZE 32000
+#define SC_BUFFER_SIZE 64000
/*
compiling:
@@ -261,7 +261,7 @@ void sendOSC_senduntyped(t_sendOSC *x, t_symbol *s, int argc, t_atom *argv) static void sendOSC_sendtyped(t_sendOSC *x, t_symbol *s, int argc, t_atom *argv)
{
- char* targv[MAXPDARG];
+ char* targv[MAX_ARGS];
char tmparg[MAXPDSTRING];
char* tmp = tmparg;
int c;
|