HomeFreeBSD

Fix coverity defects: CID 147639

Description

Fix coverity defects: CID 147639

When array is passed as a parameter it degenerates into a
pointer so the sizeof(path) in is_shorthand_path() and always
get return value of 8, instead of the string length we want.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: GeLiXin <ge.lixin@zte.com.cn>
Closes #5198

Details

Provenance
GeLiXin <ge.lixin@zte.com.cn>Authored on Oct 10 2016, 10:30 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Oct 10 2016, 10:30 PM
Parents
rGd33931a83a33: Write issue taskq shouldn't be dynamic
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG8c8cf8a2d856: Fix coverity defects: CID 147639 (authored by GeLiXin <ge.lixin@zte.com.cn>).Oct 10 2016, 10:30 PM