Skip to content

Commit 46a6bd7

Browse files
committed
MFH
1 parent 112462d commit 46a6bd7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

sapi/apache/php_apache.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,9 +235,9 @@ PHP_MINFO_FUNCTION(apache)
235235
if ((p = strrchr(name, '.'))) {
236236
*p='\0'; /* Cut off ugly .c extensions on module names */
237237
}
238-
strcat(modulenames, name);
238+
strlcat(modulenames, name, sizeof(modulenames));
239239
if (modp->next) {
240-
strcat(modulenames, ", ");
240+
strlcat(modulenames, ", ", sizeof(modulenames));
241241
}
242242
}
243243
php_info_print_table_row(2, "Loaded Modules", modulenames);

sapi/apache_hooks/php_apache.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1637,9 +1637,9 @@ PHP_MINFO_FUNCTION(apache)
16371637
if ((p = strrchr(name, '.'))) {
16381638
*p='\0'; /* Cut off ugly .c extensions on module names */
16391639
}
1640-
strcat(modulenames, name);
1640+
strlcat(modulenames, name, sizeof(modulenames));
16411641
if (modp->next) {
1642-
strcat(modulenames, ", ");
1642+
strlcat(modulenames, ", ", sizeof(modulenames));
16431643
}
16441644
}
16451645
php_info_print_table_row(2, "Loaded Modules", modulenames);

0 commit comments

Comments
 (0)