From: Ben Pfaff Date: Wed, 23 Mar 2011 03:55:55 +0000 (-0700) Subject: str: Make ss_alloc_substring_pool() null-terminate its output. X-Git-Tag: v0.7.7~4 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=03bfb72314e434ddaa2ff2b770d1d9df2ea1927a;hp=03bfb72314e434ddaa2ff2b770d1d9df2ea1927a;p=pspp-builds.git str: Make ss_alloc_substring_pool() null-terminate its output. 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 ---