From 9cfcfad19b23b7c1a691b503c70022a9f5238bd7 Mon Sep 17 00:00:00 2001 From: Martin Peach Date: Wed, 19 May 2010 20:45:15 +0000 Subject: Trying to make it immune to garbage input: Don't attempt to print bad OSC path, it could cause trouble. svn path=/trunk/externals/mrpeach/; revision=13564 --- osc/unpackOSC.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'osc') diff --git a/osc/unpackOSC.c b/osc/unpackOSC.c index 56054b6..d1ba6dd 100644 --- a/osc/unpackOSC.c +++ b/osc/unpackOSC.c @@ -1,10 +1,7 @@ -/* unpackOSC is like dumpOSC but outputs two lists: a list of symbols for the path */ -/* and a list of floats and/or symbols for the data */ +/* unpackOSC is like dumpOSC but outputs a list consisting of a single symbol for the path */ +/* and a list of floats and/or symbols for the data, and adds an outlet for a time delay. */ /* This allows for the separation of the protocol and its transport. */ /* Started by Martin Peach 20060420 */ -/* This version tries to be standalone from LIBOSC MP 20060425 */ -/* MP 20060505 fixed a bug (line 209) where bytes are wrongly interpreted as negative */ -/* MP 20070705 added timestamp outlet */ /* dumpOSC.c header follows: */ /* Written by Matt Wright and Adrian Freed, The Center for New Music and @@ -282,8 +279,7 @@ static void unpackOSC_list(t_unpackOSC *x, t_symbol *s, int argc, t_atom *argv) args = unpackOSC_DataAfterAlignedString(messageName, buf+x->x_raw_c); if (args == 0) { - post("unpackOSC: Bad message name string: (%s) Dropping entire message.", - messageName); + post("unpackOSC: Bad message name string: Dropping entire message."); return; } #ifdef DEBUG -- cgit v1.2.1