summaryrefslogtreecommitdiff
path: root/bin/md5/md5.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2010-10-27 15:24:11 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2010-10-27 15:24:11 +0000
commit912ad6576209c9d7f18e682bf799dc2a50cdd3f7 (patch)
tree98bc1998efa2e0eaecf344089a18c01c7d530b14 /bin/md5/md5.c
parent808c32a2ecb1aa7c029c03e3b8198fcbab9749f5 (diff)
Use a 32KB data buffer instead of a 1KB buffer.
Diffstat (limited to 'bin/md5/md5.c')
-rw-r--r--bin/md5/md5.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/md5/md5.c b/bin/md5/md5.c
index 35d4fc39ce6..e6a26791e35 100644
--- a/bin/md5/md5.c
+++ b/bin/md5/md5.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: md5.c,v 1.51 2010/10/25 19:05:52 millert Exp $ */
+/* $OpenBSD: md5.c,v 1.52 2010/10/27 15:24:10 millert Exp $ */
/*
* Copyright (c) 2001,2003,2005-2006 Todd C. Miller <Todd.Miller@courtesan.com>
@@ -477,7 +477,7 @@ digest_file(const char *file, struct hash_list *hl, int echo)
struct hash_function *hf;
FILE *fp;
size_t nread;
- u_char data[BUFSIZ];
+ u_char data[32 * 1024];
char digest[MAX_DIGEST_LEN + 1];
if (strcmp(file, "-") == 0)
@@ -537,7 +537,7 @@ digest_filelist(const char *file, struct hash_function *defhash)
char *lbuf = NULL;
FILE *listfp, *fp;
size_t len, nread;
- u_char data[BUFSIZ];
+ u_char data[32 * 1024];
union ANY_CTX context;
struct hash_function *hf;