Commit 37c2a528 authored by Lucio M. Tato's avatar Lucio M. Tato Committed by Trevor Norris
Browse files

path: fix slice OOB in trim



Internal function trim(arr). 2nd parameter of slice() should be slice's
end index (not included). Because of function normalize() (called before
trim()), "start" is always zero so the bug -for now- has no effect, but
its a bug waiting to happen.

Reviewed-by: default avatarTrevor Norris <trev.norris@gmail.com>
parent aab126bb
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment