MFC r299971
Fix off by one error that overflowed the rep_len array when doing the final NUL termination.
Reported by: Coverity CID: 1007617