diff options
Diffstat (limited to 'src/lib/libcrypto/bn/bn_print.c')
-rw-r--r-- | src/lib/libcrypto/bn/bn_print.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/bn/bn_print.c b/src/lib/libcrypto/bn/bn_print.c index ad80dab325..acba7ed7ee 100644 --- a/src/lib/libcrypto/bn/bn_print.c +++ b/src/lib/libcrypto/bn/bn_print.c | |||
@@ -140,12 +140,12 @@ char *BN_bn2dec(const BIGNUM *a) | |||
140 | /* We now have a series of blocks, BN_DEC_NUM chars | 140 | /* We now have a series of blocks, BN_DEC_NUM chars |
141 | * in length, where the last one needs truncation. | 141 | * in length, where the last one needs truncation. |
142 | * The blocks need to be reversed in order. */ | 142 | * The blocks need to be reversed in order. */ |
143 | snprintf(p,BUF_REMAIN,BN_DEC_FMT1,*lp); | 143 | BIO_snprintf(p,BUF_REMAIN,BN_DEC_FMT1,*lp); |
144 | while (*p) p++; | 144 | while (*p) p++; |
145 | while (lp != bn_data) | 145 | while (lp != bn_data) |
146 | { | 146 | { |
147 | lp--; | 147 | lp--; |
148 | snprintf(p,BUF_REMAIN,BN_DEC_FMT2,*lp); | 148 | BIO_snprintf(p,BUF_REMAIN,BN_DEC_FMT2,*lp); |
149 | while (*p) p++; | 149 | while (*p) p++; |
150 | } | 150 | } |
151 | } | 151 | } |