1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-06-02 22:38:02 +02:00

Oops. Fixed last fix. The diffstat tool is really useful.

This commit is contained in:
Werner Koch 2002-09-20 07:56:27 +00:00
parent 42230d3783
commit b84a50deb8

View File

@ -339,8 +339,8 @@ do_get_buffer( MPI a, unsigned *nbytes, int *sign, int force_secure )
*nbytes = n = a->nlimbs * BYTES_PER_MPI_LIMB;
if (!n)
n++; /* avoid zero length allocation */
p = buffer = force_secure || mpi_is_secure(a) ? m_alloc_secure( *nbytes)
: m_alloc( *nbytes );
p = buffer = force_secure || mpi_is_secure(a) ? m_alloc_secure(n)
: m_alloc(n);
for(i=a->nlimbs-1; i >= 0; i-- ) {
alimb = a->d[i];