From: Joe Orton Date: Mon, 10 Jan 2005 11:30:01 +0000 (+0000) Subject: MFH: Don't scribble over the stack; icc compiler warning fix X-Git-Tag: php-5.0.4RC1~367 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f6b1919e3f52317883ff9bc3f2c48e38fd4dacfd;p=php MFH: Don't scribble over the stack; icc compiler warning fix from dcb314@hotmail.com via Red Hat bugzilla #143795. --- diff --git a/ext/mbstring/libmbfl/filters/mbfilter_htmlent.c b/ext/mbstring/libmbfl/filters/mbfilter_htmlent.c index f7e7896be6..2eaa09cf74 100644 --- a/ext/mbstring/libmbfl/filters/mbfilter_htmlent.c +++ b/ext/mbstring/libmbfl/filters/mbfilter_htmlent.c @@ -120,7 +120,7 @@ int mbfl_filt_conv_html_enc(int c, mbfl_convert_filter *filter) } { - int *p = tmp + sizeof(tmp); + int *p = tmp + sizeof(tmp) / sizeof(tmp[0]); CK((*filter->output_function)('#', filter->data));