]> granicus.if.org Git - php/commitdiff
- Fix for bug #15628 (for real now :)
authorDerick Rethans <derick@php.net>
Wed, 20 Feb 2002 15:53:25 +0000 (15:53 +0000)
committerDerick Rethans <derick@php.net>
Wed, 20 Feb 2002 15:53:25 +0000 (15:53 +0000)
ext/iconv/iconv.c

index 8e51bf7e197cd67468a605c478feeca52b89f482..4e9e4d747a6ada69f715a45d847f90519b594e91 100644 (file)
@@ -193,7 +193,7 @@ PHP_NAMED_FUNCTION(php_if_iconv)
        if (php_iconv_string(Z_STRVAL_PP(in_buffer), Z_STRLEN_PP(in_buffer),
                                                 &out_buffer,  &out_len,
                                                 Z_STRVAL_PP(in_charset), Z_STRVAL_PP(out_charset)) == SUCCESS) {
-               RETVAL_STRINGL(out_buffer, out_len, 0);
+               RETVAL_STRINGL(out_buffer, out_len + 1, 0);
        } else {
                RETURN_FALSE;
        }