Review at https://gerrit.osmocom.org/3824
rtp: return offset in osmo_rtp_snprintf()
Instead of the result of the last snprintf() call.
Change-Id: I10066d73387be96a4e1f3349d700405beb138076
---
M src/rtp.c
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/libosmo-netif refs/changes/24/3824/1
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 @@
ret = snprintf(buf+offset, len, "]");
SNPRINTF_BUFFER_SIZE(ret, size, len, offset);
- return ret;
+ return offset;
}
--
To view, visit https://gerrit.osmocom.org/3824
To unsubscribe, visit https://gerrit.osmocom.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I10066d73387be96a4e1f3349d700405beb138076
Gerrit-PatchSet: 1
Gerrit-Project: libosmo-netif
Gerrit-Branch: master
Gerrit-Owner: Pablo Neira Ayuso <[email protected]>