Frank Filz has uploaded this change for review.
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@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 change 458497. To unsubscribe, or for help writing mail filters, visit settings.