opnsense-ports/audio/liblo/files/patch-src-messages.c
Franco Fichtner a737ce6b05 */*: sync previously available, but unused ports
Taken from: FreeBSD
2015-04-22 06:45:04 +02:00

13 lines
565 B
C

--- src/message.c.orig 2014-01-20 12:49:42.000000000 +0100
+++ src/message.c 2014-12-03 23:02:28.000000000 +0100
@@ -996,8 +996,8 @@ void lo_message_pp(lo_message m)
putchar('\n');
if (d != end) {
fprintf(stderr,
- "liblo warning: type and data do not match (off by %d) in message %p\n",
- abs((char *) d - (char *) end), m);
+ "liblo warning: type and data do not match (off by %td) in message %p\n",
+ d >= end ? (char *) d - (char *) end : (char *) end - (char *) d, m);
}
}