zstd
zstd copied to clipboard
fix: off-by-one error in `convertPathnameToDirName`
Fixes #4380
- Use
pathname[len-1]instead ofpathname[len]to compare/modify last character instead of null terminator - Move
len == 0check to inside loop to avoid OOB