+1
−1
Loading
strncpy does not guarantee that the resulting strings are null terminated, which leads to mistakes. It's always better to use a function like snprintf instead, so ban it. Change-Id: I6ca56103a35df3364a04bdd68937768bc0479235 Signed-off-by:Ben Walker <benjamin.walker@intel.com> Reviewed-on: https://review.gerrithub.io/407027 Tested-by:
SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by:
Jim Harris <james.r.harris@intel.com> Reviewed-by:
Daniel Verkamp <daniel.verkamp@intel.com>