]> granicus.if.org Git - php/commitdiff
MFH: Don't scribble over the stack; icc compiler warning fix
authorJoe Orton <jorton@php.net>
Mon, 10 Jan 2005 11:30:01 +0000 (11:30 +0000)
committerJoe Orton <jorton@php.net>
Mon, 10 Jan 2005 11:30:01 +0000 (11:30 +0000)
from dcb314@hotmail.com via Red Hat bugzilla #143795.

ext/mbstring/libmbfl/filters/mbfilter_htmlent.c

index f7e7896be6f0345a7ddb765f599c0c9cf020e8be..2eaa09cf7405346312b2ae7820ac6b41262679c4 100644 (file)
@@ -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));