Frank Filz has uploaded this change for review. (
https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/458497
Change subject: GLUSTER: use memcpy instead of strcpy in lookup_path and use less memory
......................................................................
GLUSTER: use memcpy instead of strcpy in lookup_path and use less memory
Since we do strlen on every string we copy, use memcpy.
Also, we over-allocate memory by the length of mount_path.
Change-Id: I441f20a21da1ff2438705ad515a17efe5507048c
Signed-off-by: Frank S. Filz <ffilzlnx(a)mindspring.com>
---
M src/FSAL/FSAL_GLUSTER/export.c
1 file changed, 16 insertions(+), 9 deletions(-)
git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/97/458497/1
--
To view, visit
https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/458497
To unsubscribe, or for help writing mail filters, visit
https://review.gerrithub.io/settings
Gerrit-Project: ffilz/nfs-ganesha
Gerrit-Branch: next
Gerrit-Change-Id: I441f20a21da1ff2438705ad515a17efe5507048c
Gerrit-Change-Number: 458497
Gerrit-PatchSet: 1
Gerrit-Owner: Frank Filz <ffilzlnx(a)mindspring.com>
Gerrit-MessageType: newchange