Add patch to fix off-by-one error in path allocations