From 9c5f01e7b2cb1455314443ceaeb035326354d280 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Mon, 4 Sep 2017 21:00:15 +0200 Subject: rtp: return offset in osmo_rtp_snprintf() Instead of the result of the last snprintf() call. Change-Id: I10066d73387be96a4e1f3349d700405beb138076 --- src/rtp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/rtp.c') diff --git a/src/rtp.c b/src/rtp.c index 7ac5862..44fc217 100644 --- a/src/rtp.c +++ b/src/rtp.c @@ -222,5 +222,5 @@ int osmo_rtp_snprintf(char *buf, size_t size, struct msgb *msg) ret = snprintf(buf+offset, len, "]"); SNPRINTF_BUFFER_SIZE(ret, size, len, offset); - return ret; + return offset; } -- cgit v1.2.3