TS-1475: Coverity 1242015 Buffer not null terminated