X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?p=pspp-builds.git;a=blobdiff_plain;f=src%2Fdata%2Fsys-file-reader.c;h=5a8402791464b663f596596b0675098d02202370;hp=cff462ac143df5184aeeec231d1ad388ef278cde;hb=17c302ddd46683b6251f52e1d6dd6de5099d5abb;hpb=6b562f8a8263930b8d1ed1862efec76f2511ed08 diff --git a/src/data/sys-file-reader.c b/src/data/sys-file-reader.c index cff462ac..5a840279 100644 --- a/src/data/sys-file-reader.c +++ b/src/data/sys-file-reader.c @@ -784,7 +784,7 @@ read_extension_record (struct sfm_reader *r, struct dictionary *dict, /* New in SPSS 16. Contains a single string that describes the character encoding, e.g. "windows-1252". */ { - char *encoding = xcalloc (size, count + 1); + char *encoding = pool_calloc (r->pool, size, count + 1); read_string (r, encoding, count + 1); dict_set_encoding (dict, encoding); return;