summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2010-02-17 00:43:02 +0000
committerDavid Robillard <d@drobilla.net>2010-02-17 00:43:02 +0000
commitbf1d84fd0f4400a97922177646e3cac4eb8e3c31 (patch)
tree554e1f61b5542764d5c929c4b620d807bd7f9b35 /src
parent259b0ad79e0f5866b52234975977fb5c9bbb3fb5 (diff)
downloadingen-bf1d84fd0f4400a97922177646e3cac4eb8e3c31.tar.gz
ingen-bf1d84fd0f4400a97922177646e3cac4eb8e3c31.tar.bz2
ingen-bf1d84fd0f4400a97922177646e3cac4eb8e3c31.zip
Fix liblo varargs argument termination.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2457 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r--src/client/OSCEngineSender.cpp2
-rw-r--r--src/engine/OSCClientSender.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/client/OSCEngineSender.cpp b/src/client/OSCEngineSender.cpp
index 62ad94ec..8600ec44 100644
--- a/src/client/OSCEngineSender.cpp
+++ b/src/client/OSCEngineSender.cpp
@@ -89,7 +89,7 @@ OSCEngineSender::attach(int32_t ping_id, bool block)
void
OSCEngineSender::register_client(Shared::ClientInterface* client)
{
- send("/register_client", "i", next_id(), LO_ARGS_END, LO_ARGS_END);
+ send("/register_client", "i", next_id(), LO_ARGS_END);
}
diff --git a/src/engine/OSCClientSender.cpp b/src/engine/OSCClientSender.cpp
index eec3923a..ee636784 100644
--- a/src/engine/OSCClientSender.cpp
+++ b/src/engine/OSCClientSender.cpp
@@ -53,7 +53,7 @@ OSCClientSender::response_ok(int32_t id)
if (!_enabled)
return;
- if (lo_send(_address, "/ok", "i", id) < 0) {
+ if (lo_send(_address, "/ok", "i", id, LO_ARGS_END) < 0) {
Raul::error << "Unable to send OK " << id << "! ("
<< lo_address_errstr(_address) << ")" << endl;
}
@@ -73,7 +73,7 @@ OSCClientSender::response_error(int32_t id, const std::string& msg)
if (!_enabled)
return;
- if (lo_send(_address, "/error", "is", id, msg.c_str()) < 0) {
+ if (lo_send(_address, "/error", "is", id, msg.c_str(), LO_ARGS_END) < 0) {
Raul::error << "Unable to send error " << id << "! ("
<< lo_address_errstr(_address) << ")" << endl;
}