Fix buffer overrun with long field values.