truncate_len result was inverted
Revert "Partial revert of 14531625"

This reverts commit 60205b07e6f2e6959c66a66c40f3d966783b1243.