libosmo-netif/src
Pablo Neira Ayuso 5994198208 src: _snprintf() helper functions nul-terminate buffers, if possible
This patch inconditionally initializes the buffer we get to
nul-terminate it, whenever possible. It's a very simple solution to
catch three overly corner cases:

1) snprintf() returns -1, very much unlikely in practise.

2) msg->len == 0: In such case, I would expect this function is never
   called with an empty message, but let's be safe in this case too.

3) If your buffer is empty, it doesn't nul-terminate the buffer.

Change-Id: I97e517f2d98e83894ea707c63489559302ff6bd2
2017-09-12 13:28:41 +02:00
..
channel Fix the compilation on FreeBSD. 2015-02-25 15:52:14 +01:00
Makefile.am SCTP support for osmo_stream_{cli,srv} code 2015-12-21 20:54:19 +01:00
amr.c amr: use AMR_FT_MAX instead of hardcoded number 2013-12-14 22:41:03 +01:00
channel.c channel: add subtype ID to osmo_chan_create 2012-08-19 00:52:00 +02:00
datagram.c misc: Call the variable ctx like in all other places 2017-04-29 11:56:14 +00:00
ipa.c ipa: fix compilation warning 2012-10-15 23:09:36 +02:00
ipa_unit.c ipa_unit: use talloc_strdup 2013-08-25 14:24:46 +02:00
osmux.c src: _snprintf() helper functions nul-terminate buffers, if possible 2017-09-12 13:28:41 +02:00
rs232.c src: use osmo_timer_setup() 2017-06-07 18:40:35 +02:00
rtp.c src: _snprintf() helper functions nul-terminate buffers, if possible 2017-09-12 13:28:41 +02:00
stream.c src: use osmo_timer_setup() 2017-06-07 18:40:35 +02:00