This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "An utility library for Open Source Mobile Communications".
The branch, master has been updated
via aeecc48c45e539e0e176dd13d86423e37ffbcee0 (commit)
from 1fa78567e4e1963a28711b9b47111b840b50cfdb (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://cgit.osmocom.org/libosmocore/commit/?id=aeecc48c45e539e0e176dd13d864…
commit aeecc48c45e539e0e176dd13d86423e37ffbcee0
Author: Harald Welte <laforge(a)gnumonks.org>
Date: Sat Nov 26 10:41:40 2016 +0100
Introduce osmo_strlcpy() function so we can stop using strncpy()
I'm aware of the existing criticism on stlrcpy(), but I think it is
still better than what we have now: stnrcpy(), sometimes with Coverity
warnings and sometimes with a manual setting of the termination byte.
The implementation follows the linux kernel strlcpy() which is claimed
to be BSD compatible.
We could of course link against libbsd on Linux instead, but I think
it's reasonably small and simple to provide our own implementation.
Future versions of libosmocore could use some autoconf magic and
preprocessor macros to use the system-provided strlcpy() if it exists.
Change-Id: Ifdc99b0e3b8631f1e771e58acaf9efb00a9cd493
-----------------------------------------------------------------------
Summary of changes:
include/osmocom/core/utils.h | 2 ++
src/utils.c | 22 ++++++++++++++++++++++
2 files changed, 24 insertions(+)
hooks/post-receive
--
An utility library for Open Source Mobile Communications