]> granicus.if.org Git - php/commitdiff
MFH
authorAntony Dovgal <tony2001@php.net>
Thu, 28 Dec 2006 13:30:25 +0000 (13:30 +0000)
committerAntony Dovgal <tony2001@php.net>
Thu, 28 Dec 2006 13:30:25 +0000 (13:30 +0000)
sapi/apache/php_apache.c
sapi/apache_hooks/php_apache.c

index 9db0a948981406c01f835898ca402c40f767e55d..154f7a1901a6f9e7a15df714bd3c17a6e7efea2a 100644 (file)
@@ -235,9 +235,9 @@ PHP_MINFO_FUNCTION(apache)
                if ((p = strrchr(name, '.'))) {
                        *p='\0'; /* Cut off ugly .c extensions on module names */
                }
-               strcat(modulenames, name);
+               strlcat(modulenames, name, sizeof(modulenames));
                if (modp->next) {
-                       strcat(modulenames, ", ");
+                       strlcat(modulenames, ", ", sizeof(modulenames));
                }
        }
        php_info_print_table_row(2, "Loaded Modules", modulenames);
index 57f8b4e1d06a71bdf5eae2a54cc0edc087fe869c..21a8d911fb5f24e88f941d0c3a3e8e8f3f7a2c1b 100644 (file)
@@ -1637,9 +1637,9 @@ PHP_MINFO_FUNCTION(apache)
                if ((p = strrchr(name, '.'))) {
                        *p='\0'; /* Cut off ugly .c extensions on module names */
                }
-               strcat(modulenames, name);
+               strlcat(modulenames, name, sizeof(modulenames));
                if (modp->next) {
-                       strcat(modulenames, ", ");
+                       strlcat(modulenames, ", ", sizeof(modulenames));
                }
        }
        php_info_print_table_row(2, "Loaded Modules", modulenames);