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

Max gerrit-no-reply at lists.osmocom.org
Fri Jan 13 11:24:47 UTC 2017


Patch Set 2:

Also, why not use strncat? if(sizeof(dst)) { *dst = '\0'; strncat(dst, src, sizeof(dst)-1); } looks easier to me.

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

Gerrit-MessageType: comment
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-HasComments: No


More information about the gerrit-log mailing list