summaryrefslogtreecommitdiff
path: root/ext/apache/apache.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/apache/apache.c')
-rw-r--r--ext/apache/apache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/apache/apache.c b/ext/apache/apache.c
index 057e6b8885..da439f58ed 100644
--- a/ext/apache/apache.c
+++ b/ext/apache/apache.c
@@ -196,7 +196,7 @@ PHP_MINFO_FUNCTION(apache)
PUTS("<tr><td valign=\"top\" bgcolor=\"" PHP_ENTRY_NAME_COLOR "\">Loaded modules</td><td bgcolor=\"" PHP_CONTENTS_COLOR "\">");
for(modp = top_module; modp; modp = modp->next) {
- strncpy(name, modp->name, sizeof(name) - 1);
+ strlcpy(name, modp->name, sizeof(name));
if ((p = strrchr(name, '.'))) {
*p='\0'; /* Cut off ugly .c extensions on module names */
}