summaryrefslogtreecommitdiff
path: root/support
diff options
context:
space:
mode:
authorThom May <thommay@apache.org>2003-05-13 15:39:08 +0000
committerThom May <thommay@apache.org>2003-05-13 15:39:08 +0000
commitc3529282b3a654c0a2f5d53b8e4cc30e0291adef (patch)
tree4bcdf99358e20e1630ed055fc5a684e03e51fe32 /support
parent5c7f11d4f1c5fa207fc196c6d8e2dd1476de8ddd (diff)
downloadhttpd-c3529282b3a654c0a2f5d53b8e4cc30e0291adef.tar.gz
Backport htdigest buffer overflow fixes from 2.1
Reviewed by: Andre Malo, Jeff Trawick git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/APACHE_2_0_BRANCH@99783 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'support')
-rw-r--r--support/htdigest.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/support/htdigest.c b/support/htdigest.c
index ece9173d6d..79d7171400 100644
--- a/support/htdigest.c
+++ b/support/htdigest.c
@@ -307,8 +307,8 @@ int main(int argc, const char * const argv[])
fprintf(stderr, "Use -c option to create new one.\n");
cleanup_tempfile_and_exit(1);
}
- strcpy(user, argv[3]);
- strcpy(realm, argv[2]);
+ apr_cpystrn(user, argv[3], sizeof(user));
+ apr_cpystrn(realm, argv[2], sizeof(realm));
found = 0;
while (!(get_line(line, MAX_STRING_LEN, f))) {