diff options
author | Pablo Neira Ayuso <pablo@gnumonks.org> | 2017-09-04 21:00:15 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2017-09-05 14:57:52 +0200 |
commit | 9c5f01e7b2cb1455314443ceaeb035326354d280 (patch) | |
tree | a90179ac92b91b8ff464c73963f1c25dca34faad /src/rtp.c | |
parent | 03b84ec99ba591950b6598c682f6f7083c8cc2f5 (diff) |
rtp: return offset in osmo_rtp_snprintf()
Instead of the result of the last snprintf() call.
Change-Id: I10066d73387be96a4e1f3349d700405beb138076
Diffstat (limited to 'src/rtp.c')
-rw-r--r-- | src/rtp.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |