diff options
author | Michael Adam <obnox@samba.org> | 2015-04-15 09:15:23 +0200 |
---|---|---|
committer | Niels de Vos <ndevos@redhat.com> | 2015-04-18 12:15:47 +0000 |
commit | fc451b5b0fb8d7b3952ca6ecf91779cbcf00187f (patch) | |
tree | 8547ddd576155ee0fd69a604af20143c8d0c17f3 /tests | |
parent | 7fb85e3670cb4743436fd2cf0fbbf9c0869728ec (diff) |
gfapi: fix potential non-0-terminated string (CID 1134002)
Use correct target buffer length for strncpy and make
sure that the target string is 0 terminated.
Fixes Coverity ID 1134002.
Change-Id: I97a74a94a818eb08a711e547f2ac6ae46087f065
BUG: 789278
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-on: http://review.gluster.org/10247
Tested-by: NetBSD Build System
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Kotresh HR <khiremat@redhat.com>
Reviewed-by: Niels de Vos <ndevos@redhat.com>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions