summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2003-04-08 20:40:57 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2003-04-08 20:40:57 +0000
commit70e70feb13fd4f1a1de1a96d316a59390c3ba491 (patch)
treee21777ce35f763e6a09605784909ed796cafe75f /usr.sbin
parent926ecf6bc68da27ba8daa4e84579e1c2367dcbc0 (diff)
very easy strcpy
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/httpd/src/modules/standard/mod_rewrite.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/httpd/src/modules/standard/mod_rewrite.c b/usr.sbin/httpd/src/modules/standard/mod_rewrite.c
index 2f1552dd1f0..65f00c9307e 100644
--- a/usr.sbin/httpd/src/modules/standard/mod_rewrite.c
+++ b/usr.sbin/httpd/src/modules/standard/mod_rewrite.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mod_rewrite.c,v 1.16 2002/10/07 20:23:06 henning Exp $ */
+/* $OpenBSD: mod_rewrite.c,v 1.17 2003/04/08 20:40:56 henning Exp $ */
/* ====================================================================
* The Apache Software License, Version 1.1
@@ -3189,10 +3189,10 @@ static void rewritelog(request_rec *r, int level, const char *text, ...)
ap_vsnprintf(str2, sizeof(str2), text, ap);
if (r->main == NULL) {
- strcpy(type, "initial");
+ strlcpy(type, "initial", sizeof(type));
}
else {
- strcpy(type, "subreq");
+ strlcpy(type, "subreq", sizeof(type));
}
for (i = 0, req = r; req->prev != NULL; req = req->prev) {