summaryrefslogtreecommitdiffstats
path: root/extras/libmemif/src/socket.c
diff options
context:
space:
mode:
authorNathan Skrzypczak <nathan.skrzypczak@gmail.com>2021-05-07 19:39:07 +0200
committerNathan Skrzypczak <nathan.skrzypczak@gmail.com>2021-09-29 14:49:45 +0200
commit814eee55faa81252e50b7e4108d93bbb67aa4c3a (patch)
treef14cdc832a946c71c8056e61fb3dec89160c2ea5 /extras/libmemif/src/socket.c
parent754cffbe1635feb261536c96e0b0f32ae876f2ef (diff)
libmemif: Fix abstract sockets
This fixes size computation when using abstract sockets with libmemif Type: fix Change-Id: I3a686e4ff2132b9fb295bbe30633958dcfec672b Signed-off-by: Nathan Skrzypczak <nathan.skrzypczak@gmail.com>
Diffstat (limited to 'extras/libmemif/src/socket.c')
-rw-r--r--extras/libmemif/src/socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/extras/libmemif/src/socket.c b/extras/libmemif/src/socket.c
index a9db7705fe9..eaf9d2f7ca2 100644
--- a/extras/libmemif/src/socket.c
+++ b/extras/libmemif/src/socket.c
@@ -274,7 +274,7 @@ memif_msg_enq_disconnect (memif_control_channel_t *cc, uint8_t *err_string,
uint16_t l = sizeof (d->string);
if (l > 96)
{
- DBG ("Disconnect string too long. Sending the first %d characters.",
+ DBG ("Disconnect string too long. Sending the first %ld characters.",
sizeof (d->string) - 1);
}
strlcpy ((char *) d->string, (char *) err_string, sizeof (d->string));