diff options
Diffstat (limited to 'src/lib/libcrypto/bn/bn_print.c')
| -rw-r--r-- | src/lib/libcrypto/bn/bn_print.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libcrypto/bn/bn_print.c b/src/lib/libcrypto/bn/bn_print.c index e2cab2497f..49efbcb9a9 100644 --- a/src/lib/libcrypto/bn/bn_print.c +++ b/src/lib/libcrypto/bn/bn_print.c | |||
| @@ -147,12 +147,12 @@ char *BN_bn2dec(const BIGNUM *a) | |||
| 147 | /* We now have a series of blocks, BN_DEC_NUM chars | 147 | /* We now have a series of blocks, BN_DEC_NUM chars |
| 148 | * in length, where the last one needs truncation. | 148 | * in length, where the last one needs truncation. |
| 149 | * The blocks need to be reversed in order. */ | 149 | * The blocks need to be reversed in order. */ |
| 150 | (void) snprintf(p,BUF_REMAIN,BN_DEC_FMT1,*lp); | 150 | snprintf(p,BUF_REMAIN,BN_DEC_FMT1,*lp); |
| 151 | while (*p) p++; | 151 | while (*p) p++; |
| 152 | while (lp != bn_data) | 152 | while (lp != bn_data) |
| 153 | { | 153 | { |
| 154 | lp--; | 154 | lp--; |
| 155 | (void) snprintf(p,BUF_REMAIN,BN_DEC_FMT2,*lp); | 155 | snprintf(p,BUF_REMAIN,BN_DEC_FMT2,*lp); |
| 156 | while (*p) p++; | 156 | while (*p) p++; |
| 157 | } | 157 | } |
| 158 | } | 158 | } |
| @@ -367,10 +367,10 @@ char *BN_options(void) | |||
| 367 | { | 367 | { |
| 368 | init++; | 368 | init++; |
| 369 | #ifdef BN_LLONG | 369 | #ifdef BN_LLONG |
| 370 | (void) snprintf(data,sizeof data,"bn(%d,%d)", | 370 | snprintf(data,sizeof data,"bn(%d,%d)", |
| 371 | (int)sizeof(BN_ULLONG)*8,(int)sizeof(BN_ULONG)*8); | 371 | (int)sizeof(BN_ULLONG)*8,(int)sizeof(BN_ULONG)*8); |
| 372 | #else | 372 | #else |
| 373 | (void) snprintf(data,sizeof data,"bn(%d,%d)", | 373 | snprintf(data,sizeof data,"bn(%d,%d)", |
| 374 | (int)sizeof(BN_ULONG)*8,(int)sizeof(BN_ULONG)*8); | 374 | (int)sizeof(BN_ULONG)*8,(int)sizeof(BN_ULONG)*8); |
| 375 | #endif | 375 | #endif |
| 376 | } | 376 | } |
