summaryrefslogtreecommitdiff
path: root/ext/apache/apache.c
diff options
context:
space:
mode:
authorAndi Gutmans <andi@php.net>1999-09-14 20:15:32 +0000
committerAndi Gutmans <andi@php.net>1999-09-14 20:15:32 +0000
commit0b601a7bea539d191e87a76e6f7733eb3788e108 (patch)
treea15ff79bc4fe0022e7c5116e14f23507bba2810d /ext/apache/apache.c
parent37d7b91d48a459fbd94be26090563fca197e4bc9 (diff)
downloadphp-git-0b601a7bea539d191e87a76e6f7733eb3788e108.tar.gz
- Another small one. I'll leave the rest for now...
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 */
}