zstd icon indicating copy to clipboard operation
zstd copied to clipboard

fix: off-by-one error in `convertPathnameToDirName`

Open Pineapple-Soup opened this issue 5 months ago • 0 comments

Fixes #4380

  • Use pathname[len-1] instead of pathname[len] to compare/modify last character instead of null terminator
  • Move len == 0 check to inside loop to avoid OOB

Pineapple-Soup avatar Aug 05 '25 20:08 Pineapple-Soup