summaryrefslogtreecommitdiffstats
path: root/userspace/include
diff options
context:
space:
mode:
authordmitry pervushin <dpervushin@nvidia.com>2020-05-11 13:31:25 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2020-05-13 15:40:51 -0400
commitaa6d4d08d4c161aa91ba2ef4330e03b61a0ca3cb (patch)
tree4b3a8394440073e693607038362375ecfdae89da /userspace/include
parent9d1e07ca184869eb0082b418d0d1cf6e62af3a40 (diff)
strncpy: it should depend on size of 1st argument
There is no point to depend on strlen of second argument, otherwise it could be a simple strcpy. Instead, let's make it depending on sizeof(destination) ...and make sure that result is NUL-terminated, too Bug 2973859 Change-Id: Ifc941fab07e503b7b980696950d65b8bb10bf4ff Signed-off-by: dmitry pervushin <dpervushin@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2342281 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: automaticguardword <automaticguardword@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Phoenix Jung <pjung@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit
Diffstat (limited to 'userspace/include')
0 files changed, 0 insertions, 0 deletions