From: Marcus Boerger Date: Mon, 5 Aug 2002 18:42:41 +0000 (+0000) Subject: ws fix X-Git-Tag: dev~15 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6c094c3e07cf2da7cc2f9237c77d8552f52e8ead;p=php ws fix --- diff --git a/ext/iconv/iconv.c b/ext/iconv/iconv.c index e36605e972..8d407b6f2a 100644 --- a/ext/iconv/iconv.c +++ b/ext/iconv/iconv.c @@ -326,7 +326,7 @@ PHP_FUNCTION(ob_iconv_handler) if ((s = strchr(SG(sapi_headers).mimetype,';')) == NULL){ mimetype = estrdup(SG(sapi_headers).mimetype); } else { - mimetype = estrndup(SG(sapi_headers).mimetype,s-SG(sapi_headers).mimetype); + mimetype = estrndup(SG(sapi_headers).mimetype, s-SG(sapi_headers).mimetype); } } else if (SG(sapi_headers).send_default_content_type) { mimetype = estrdup(SG(default_mimetype) ? SG(default_mimetype) : SAPI_DEFAULT_MIMETYPE);