str: Make ss_alloc_substring_pool() null-terminate its output.
authorBen Pfaff <blp@cs.stanford.edu>
Wed, 23 Mar 2011 03:55:55 +0000 (20:55 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Wed, 23 Mar 2011 04:19:49 +0000 (21:19 -0700)
It's inconsistent that ss_alloc_substring() null-terminates its output
but ss_alloc_substring_pool() does not.  This caught us out in
recode_substring_pool(), which used ss_alloc_substring_pool() in a
fallback case where create_iconv() failed and expected the result to
be null-terminated.

Reported-by: Jeremy Lavergne <jeremy@lavergne.gotdns.org>

No differences found