summaryrefslogtreecommitdiff
path: root/regress/lib/libcrypto
diff options
context:
space:
mode:
authorBrent Cook <bcook@cvs.openbsd.org>2014-11-26 05:48:01 +0000
committerBrent Cook <bcook@cvs.openbsd.org>2014-11-26 05:48:01 +0000
commit5d65e8b264537dd1b4c492e4edaef8fd3b9f8862 (patch)
tree2f8fd0861f48635ae01ceb18d42db4460601482f /regress/lib/libcrypto
parentbd0e2172830959ae577b5dfe195452b6896d13d1 (diff)
prefer memcmp to bcmp.
ok tedu@ miod@ deraadt@
Diffstat (limited to 'regress/lib/libcrypto')
-rw-r--r--regress/lib/libcrypto/pkcs7/pkcs7test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/regress/lib/libcrypto/pkcs7/pkcs7test.c b/regress/lib/libcrypto/pkcs7/pkcs7test.c
index 75d86fb974e..55483073752 100644
--- a/regress/lib/libcrypto/pkcs7/pkcs7test.c
+++ b/regress/lib/libcrypto/pkcs7/pkcs7test.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pkcs7test.c,v 1.2 2014/07/09 06:42:01 bcook Exp $ */
+/* $OpenBSD: pkcs7test.c,v 1.3 2014/11/26 05:48:00 bcook Exp $ */
/*
* Copyright (c) 2014 Joel Sing <jsing@openbsd.org>
*
@@ -115,7 +115,7 @@ message_compare(const char *out, size_t len)
len, sizeof(message));
exit(1);
}
- if (bcmp(out, message, len) != 0) {
+ if (memcmp(out, message, len) != 0) {
fprintf(stderr, "FAILURE: message mismatch\n");
fprintf(stderr, "Got:\n%s\n", out);
fprintf(stderr, "Want:\n%s\n", message);