Pablo Neira Ayuso has submitted this change and it was merged.

Change subject: rtp: return offset in osmo_rtp_snprintf()
......................................................................


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(-)

Approvals:
  Pau Espin Pedrol: Looks good to me, but someone else must approve
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



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: merged
Gerrit-Change-Id: I10066d73387be96a4e1f3349d700405beb138076
Gerrit-PatchSet: 2
Gerrit-Project: libosmo-netif
Gerrit-Branch: master
Gerrit-Owner: Pablo Neira Ayuso <[email protected]>
Gerrit-Reviewer: Harald Welte <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: Pablo Neira Ayuso <[email protected]>
Gerrit-Reviewer: Pau Espin Pedrol <[email protected]>

Reply via email to