fixed AV: missing null-terminator