csound/csound-6.18.1-upstream-fix_liblo_calls.patch

32 lines
1.1 KiB
Diff

From 596667daba1ed99eda048e491ff8f36200f09429 Mon Sep 17 00:00:00 2001
From: vlazzarini <victor.lazzarini@mu.ie>
Date: Sat, 3 Jun 2023 18:06:59 +0100
Subject: [PATCH] fixing liblo calls
---
Opcodes/OSC.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Opcodes/OSC.c b/Opcodes/OSC.c
index 4868a04c5e0..b37f5dac1e6 100644
--- a/Opcodes/OSC.c
+++ b/Opcodes/OSC.c
@@ -483,7 +483,7 @@ static int32_t OSCcounter(CSOUND *csound, OSCcount *p)
}
static int32_t OSC_handler(const char *path, const char *types,
- lo_arg **argv, int32_t argc, void *data, void *p)
+ lo_arg **argv, int32_t argc, lo_message data, void *p)
{
IGN(argc); IGN(data);
OSC_PORT *pp = (OSC_PORT*) p;
@@ -548,7 +548,7 @@ static int32_t OSC_handler(const char *path, const char *types,
case 'b':
{
int32_t len =
- lo_blobsize((lo_blob*)argv[i]);
+ lo_blobsize((lo_blob)argv[i]);
m->args[i].blob =
csound->Malloc(csound,len);
memcpy(m->args[i].blob, argv[i], len);