From b913efcb4aee1d83c8c2331de4d692622f18959c Mon Sep 17 00:00:00 2001 From: jdl Date: Tue, 3 Sep 2002 10:08:40 +0000 Subject: refixed MAXPDARG vs. MAX_ARGS in sendOSC causing segfault with more than 5 elements in the message. svn path=/trunk/externals/OSCx/; revision=105 --- OSC/makefile | 6 +++--- 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; -- cgit v1.2.1