diff options
author | Martin Peach <mrpeach@users.sourceforge.net> | 2010-05-19 20:45:15 +0000 |
---|---|---|
committer | Martin Peach <mrpeach@users.sourceforge.net> | 2010-05-19 20:45:15 +0000 |
commit | 9cfcfad19b23b7c1a691b503c70022a9f5238bd7 (patch) | |
tree | b37402b3c9da52dff3023ce793d9f1b8bd6ed329 /osc | |
parent | fc20d3442a848e0b4c414a296ea4f8fbad4aec10 (diff) |
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
Diffstat (limited to 'osc')
-rw-r--r-- | osc/unpackOSC.c | 10 |
1 files changed, 3 insertions, 7 deletions
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 |