diff options
-rw-r--r-- | src/regress/lib/libcrypto/bn/bn_mod_exp.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/regress/lib/libcrypto/bn/bn_mod_exp.c b/src/regress/lib/libcrypto/bn/bn_mod_exp.c index 6b323408c8..5988458ab9 100644 --- a/src/regress/lib/libcrypto/bn/bn_mod_exp.c +++ b/src/regress/lib/libcrypto/bn/bn_mod_exp.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: bn_mod_exp.c,v 1.34 2023/03/29 10:36:14 tb Exp $ */ | 1 | /* $OpenBSD: bn_mod_exp.c,v 1.35 2023/04/06 07:08:41 tb Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Copyright (c) 2022,2023 Theo Buehler <tb@openbsd.org> | 4 | * Copyright (c) 2022,2023 Theo Buehler <tb@openbsd.org> |
@@ -77,8 +77,7 @@ bn_print(const char *name, const BIGNUM *bn) | |||
77 | size_t len; | 77 | size_t len; |
78 | int pad = 0; | 78 | int pad = 0; |
79 | 79 | ||
80 | len = strlen(name); | 80 | if ((len = strlen(name)) < 7) |
81 | if (len < 7) | ||
82 | pad = 6 - len; | 81 | pad = 6 - len; |
83 | 82 | ||
84 | fprintf(stderr, "%s: %*s", name, pad, ""); | 83 | fprintf(stderr, "%s: %*s", name, pad, ""); |