From db43afc923f32d39d06c20c1d4fb698cbad0897c Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Mon, 24 Jan 2000 21:14:42 +0000 Subject: See ChangeLog: Mon Jan 24 22:24:38 CET 2000 Werner Koch --- mpi/ChangeLog | 4 ++++ mpi/mpicoder.c | 2 ++ 2 files changed, 6 insertions(+) (limited to 'mpi') diff --git a/mpi/ChangeLog b/mpi/ChangeLog index 2d2ec8bdb..9465aa513 100644 --- a/mpi/ChangeLog +++ b/mpi/ChangeLog @@ -1,3 +1,7 @@ +Mon Jan 24 22:24:38 CET 2000 Werner Koch + + * mpicoder.c (gcry_mpi_aprint): Now really returns the length. + Mon Jan 24 13:04:28 CET 2000 Werner Koch * mpiutil.c: Removed all memory debugging code. diff --git a/mpi/mpicoder.c b/mpi/mpicoder.c index ca805f28b..bd79aca5d 100644 --- a/mpi/mpicoder.c +++ b/mpi/mpicoder.c @@ -608,6 +608,8 @@ gcry_mpi_aprint( enum gcry_mpi_format format, void **buffer, size_t *nbytes, g10_free(*buffer); *buffer = NULL; } + else if( nbytes ) + *nbytes = n; return rc; } -- cgit v1.2.3