libosmocore.git branch master updated. 0.9.0-296-gaeecc48

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/osmocom-commitlog@lists.osmocom.org/.

gitosis at osmocom.org gitosis at osmocom.org
Sat Nov 26 16:42:33 UTC 2016


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=aeecc48c45e539e0e176dd13d86423e37ffbcee0

commit aeecc48c45e539e0e176dd13d86423e37ffbcee0
Author: Harald Welte <laforge at 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



More information about the osmocom-commitlog mailing list