[ABANDON] openbsc[master]: add strncpy0.h for safe/convenient strncpy() wrappers

Neels Hofmeyr gerrit-no-reply at lists.osmocom.org
Fri Jan 13 12:49:47 UTC 2017


Neels Hofmeyr has abandoned this change.

Change subject: add strncpy0.h for safe/convenient strncpy() wrappers
......................................................................


Abandoned

damn, we already have osmo_strlcpy()!

It could be optimized to not use strlen() first, but I shouldn't be adding another one.

Also interesting that it returns strlen(src) instead of the bytes written. We don't ever use strncpy()'s return value anyway.

-- 
To view, visit https://gerrit.osmocom.org/1588
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: abandon
Gerrit-Change-Id: I505d58a02fe46d492087a3dcbff59e287521d5ad
Gerrit-PatchSet: 2
Gerrit-Project: openbsc
Gerrit-Branch: master
Gerrit-Owner: Neels Hofmeyr <nhofmeyr at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: Max <msuraev at sysmocom.de>
Gerrit-Reviewer: Neels Hofmeyr <nhofmeyr at sysmocom.de>


More information about the gerrit-log mailing list