summaryrefslogtreecommitdiffstats
path: root/tests/helpers
diff options
context:
space:
mode:
Diffstat (limited to 'tests/helpers')
-rw-r--r--tests/helpers/test_md5.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/helpers/test_md5.c b/tests/helpers/test_md5.c
index b99882b53..7f1e4f358 100644
--- a/tests/helpers/test_md5.c
+++ b/tests/helpers/test_md5.c
@@ -9,7 +9,7 @@ main(int argc, char *argv[])
{
int i, ret;
struct MD5Context ctx;
- unsigned char digest[16];
+ unsigned char digest[MD5LENGTH];
unsigned char buf[BUFSIZ];
MD5Init( &ctx );
@@ -23,7 +23,7 @@ main(int argc, char *argv[])
fclose(stdin);
MD5Final( digest, &ctx );
- for (i = 0; i < 16; i++)
+ for (i = 0; i < MD5LENGTH; i++)
printf( "%02x", digest[i] );
printf(" -\n");
return 0;