Fix buffer overrun because of missing terminator.