This commit is contained in:
Janos Follath 2019-03-06 13:43:02 +00:00
parent 276284fd2e
commit 870ed0008a

View File

@ -590,7 +590,7 @@ int mbedtls_mpi_write_string( const mbedtls_mpi *X, int radix,
if( radix >= 16 ) n >>= 1; /* Number of hexadecimal digits necessary to if( radix >= 16 ) n >>= 1; /* Number of hexadecimal digits necessary to
* present `n`. */ * present `n`. */
n += 1; /* NULL termination */ n += 1; /* Terminating null byte */
n += 1; /* Compensate for the divisions above, which round down `n` n += 1; /* Compensate for the divisions above, which round down `n`
* in case it's not even. */ * in case it's not even. */
n += 1; /* Potential '-'-sign. */ n += 1; /* Potential '-'-sign. */