diff options
author | 2003-04-08 20:40:56 +0000 | |
---|---|---|
committer | 2003-04-08 20:40:56 +0000 | |
commit | 9eda4824fef0759a89af8e3a7fe306dd01eb313f (patch) | |
tree | d048db83bc53a67c2749d3f7bbbab963ace359f1 | |
parent | Make dmesg prettier if attachment fails and no option DEBUG (diff) | |
download | wireguard-openbsd-9eda4824fef0759a89af8e3a7fe306dd01eb313f.tar.xz wireguard-openbsd-9eda4824fef0759a89af8e3a7fe306dd01eb313f.zip |
very easy strcpy
-rw-r--r-- | usr.sbin/httpd/src/modules/standard/mod_rewrite.c | 6 |
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) { |