yaz-ztest: Proper 0-terminate user-defined record buffer