fix scm_to_utf8_stringn for wide strings to NUL-append the strings
authorAndy Wingo <wingo@pobox.com>
Sun, 1 Apr 2012 18:29:41 +0000 (11:29 -0700)
committerAndy Wingo <wingo@pobox.com>
Sun, 1 Apr 2012 21:07:07 +0000 (14:07 -0700)
commit2c1b79513b7b5826db48b6e5e1d7f4dc7731d13b
tree78bf6ab5e994ce17c7dff35211e2e1fe27c092c6
parenta8004dcb4d7148ec66cbaa109a18715d757700eb
fix scm_to_utf8_stringn for wide strings to NUL-append the strings

* libguile/strings.c (u32_u8_strlen, scm_to_utf8_stringn): Sigh, fix the
  u32-to-u8 optimization to ensure that the utf8 string is
  NUL-terminated.
libguile/strings.c