opnsense-ports/audio/liblo/files/patch-src_message.c
Franco Fichtner 6e79da282a */*: sync with upstream
Taken from: FreeBSD
2016-07-27 07:58:02 +02:00

13 lines
517 B
C

--- src/message.c.orig 2014-01-20 11:49:42 UTC
+++ src/message.c
@@ -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);
}
}