diff --git a/crypto/bio/b_print.c b/crypto/bio/b_print.c index 6a28c58f07..f6277426d7 100644 --- a/crypto/bio/b_print.c +++ b/crypto/bio/b_print.c @@ -640,7 +640,7 @@ fmtfp( (caps ? "0123456789ABCDEF" : "0123456789abcdef")[fracpart % 10]; fracpart = (fracpart / 10); - } while (fracpart && (fplace < 20)); + } while (fplace < max); if (fplace == 20) fplace--; fconvert[fplace] = 0;