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

index 396beffa1d53109064c3fbeba959eeb84d3e7dbd..d2c078d3cd52f975e94e03b9c428a14453df5b61 100644 (file)
@@ -224,9 +224,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);