diff options
author | N Balachandran <nbalacha@redhat.com> | 2018-09-07 11:39:39 +0530 |
---|---|---|
committer | gluster-ant <bugzilla-bot@gluster.org> | 2018-09-07 11:39:39 +0530 |
commit | 532780c18efb6591a74c13424b572203948dd558 (patch) | |
tree | 93eb1a2376c40136650000faae31b8a77a19af66 /cli/src/cli-xml-output.c | |
parent | 86eaf5cfa5f1f3056641c701f6952c5721933693 (diff) | |
download | glusterfs-532780c18efb6591a74c13424b572203948dd558.tar.gz glusterfs-532780c18efb6591a74c13424b572203948dd558.tar.xz glusterfs-532780c18efb6591a74c13424b572203948dd558.zip |
dht: Use snprintf instead of strncpy
The recent changes to use malloc instead
of calloc left the new_name and new_path
non-null terminated. We now use snprintf
instead of strncpy to fix this.
Change-Id: I1a31701ca9447efde38921be0ba2c73cde2e7976
fixes: bz#1626346
Signed-off-by: N Balachandran <nbalacha@redhat.com>
Diffstat (limited to 'cli/src/cli-xml-output.c')
0 files changed, 0 insertions, 0 deletions