diff options
author | bcook <> | 2014-11-26 05:48:00 +0000 |
---|---|---|
committer | bcook <> | 2014-11-26 05:48:00 +0000 |
commit | 215c63694da4bf85cfa8b01c82a89a52e337e78a (patch) | |
tree | 6b6e0fcc46ad9f463ee5f1a86d01fc17c349096d | |
parent | 9aa9a99c8a572d5c1ba4b5ed7d67015b22834d7b (diff) | |
download | openbsd-215c63694da4bf85cfa8b01c82a89a52e337e78a.tar.gz openbsd-215c63694da4bf85cfa8b01c82a89a52e337e78a.tar.bz2 openbsd-215c63694da4bf85cfa8b01c82a89a52e337e78a.zip |
prefer memcmp to bcmp.
ok tedu@ miod@ deraadt@
-rw-r--r-- | src/regress/lib/libcrypto/pkcs7/pkcs7test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/regress/lib/libcrypto/pkcs7/pkcs7test.c b/src/regress/lib/libcrypto/pkcs7/pkcs7test.c index 75d86fb974..5548307375 100644 --- a/src/regress/lib/libcrypto/pkcs7/pkcs7test.c +++ b/src/regress/lib/libcrypto/pkcs7/pkcs7test.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: pkcs7test.c,v 1.2 2014/07/09 06:42:01 bcook Exp $ */ | 1 | /* $OpenBSD: pkcs7test.c,v 1.3 2014/11/26 05:48:00 bcook Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> |
4 | * | 4 | * |
@@ -115,7 +115,7 @@ message_compare(const char *out, size_t len) | |||
115 | len, sizeof(message)); | 115 | len, sizeof(message)); |
116 | exit(1); | 116 | exit(1); |
117 | } | 117 | } |
118 | if (bcmp(out, message, len) != 0) { | 118 | if (memcmp(out, message, len) != 0) { |
119 | fprintf(stderr, "FAILURE: message mismatch\n"); | 119 | fprintf(stderr, "FAILURE: message mismatch\n"); |
120 | fprintf(stderr, "Got:\n%s\n", out); | 120 | fprintf(stderr, "Got:\n%s\n", out); |
121 | fprintf(stderr, "Want:\n%s\n", message); | 121 | fprintf(stderr, "Want:\n%s\n", message); |