i18n: Always allocate from pool in recode_substring_pool().
authorBen Pfaff <blp@cs.stanford.edu>
Sat, 5 Feb 2011 05:33:47 +0000 (21:33 -0800)
committerBen Pfaff <blp@cs.stanford.edu>
Sat, 5 Feb 2011 21:18:11 +0000 (13:18 -0800)
src/libpspp/i18n.c

index 5d03d19a861b1144b496e90c9c24d5a5a61de2cb..59665bee63b6a44ba6910eea288d3ca8b1ae7b12 100644 (file)
@@ -208,7 +208,7 @@ recode_substring_pool (const char *to, const char *from,
   if ( (iconv_t) -1 == conv )
     {
       struct substring out;
-      ss_alloc_substring (&out, text);
+      ss_alloc_substring_pool (&out, text, pool);
       return out;
     }