MFC r302973: sed(1): Fix off by one introduced in r299211.
Detected by running the gsed tests.
Submitted by: Mikhail Teterin PR: 195929