diff options
author | 2003-08-25 16:05:28 +0000 | |
---|---|---|
committer | 2003-08-25 16:05:28 +0000 | |
commit | b38ca3ad3041b9da0c392ce77982dc51c4e82714 (patch) | |
tree | 777fbdb81bf4ca77bcc50e26a9bc5d8c63161f26 | |
parent | fprintf->logit to silence login banner with "ssh -q"; ok markus@ (diff) | |
download | wireguard-openbsd-b38ca3ad3041b9da0c392ce77982dc51c4e82714.tar.xz wireguard-openbsd-b38ca3ad3041b9da0c392ce77982dc51c4e82714.zip |
string shit
ok markus@
-rw-r--r-- | usr.sbin/httpd/src/support/ab.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/httpd/src/support/ab.c b/usr.sbin/httpd/src/support/ab.c index d31cbc8a7f9..6b7827a2ac8 100644 --- a/usr.sbin/httpd/src/support/ab.c +++ b/usr.sbin/httpd/src/support/ab.c @@ -1102,7 +1102,7 @@ static void read_connection(struct connection * c) respcode[3] = '\0'; } else { - strcpy(respcode, "500"); + strlcpy(respcode, "500", sizeof(respcode)); } if (respcode[0] != '2') { @@ -1357,14 +1357,14 @@ static void test(void) static void copyright(void) { if (!use_html) { - printf("This is ApacheBench, Version %s\n", VERSION " <$Revision: 1.12 $> apache-1.3"); + printf("This is ApacheBench, Version %s\n", VERSION " <$Revision: 1.13 $> apache-1.3"); printf("Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/\n"); printf("Copyright (c) 1998-2002 The Apache Software Foundation, http://www.apache.org/\n"); printf("\n"); } else { printf("<p>\n"); - printf(" This is ApacheBench, Version %s <i><%s></i> apache-1.3<br>\n", VERSION, "$Revision: 1.12 $"); printf(" Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/<br>\n"); + printf(" This is ApacheBench, Version %s <i><%s></i> apache-1.3<br>\n", VERSION, "$Revision: 1.13 $"); printf(" Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/<br>\n"); printf(" Copyright (c) 1998-2002 The Apache Software Foundation, http://www.apache.org/<br>\n"); printf("</p>\n<p>\n"); } |