From 979ed0ca26a5ae5538fc5b2aad0a8f2cdd2aae86 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Mon, 28 Jul 2003 08:59:18 +0000 Subject: Adjusted for use with current libgcrypt (1.1.42). --- g10/comment.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'g10/comment.c') diff --git a/g10/comment.c b/g10/comment.c index 3108351e4..ab5d2941e 100644 --- a/g10/comment.c +++ b/g10/comment.c @@ -86,11 +86,11 @@ make_mpi_comment_node( const char *s, gcry_mpi_t a ) size_t n = strlen(s); nb1 = mpi_get_nbits( a ); - if (gcry_mpi_print (GCRYMPI_FMT_PGP, NULL, &n1, a)) + if (gcry_mpi_print (GCRYMPI_FMT_PGP, NULL, 0, &n1, a)) BUG (); /* fixme: allocate it on the stack */ buf = xmalloc (n1); - if (gcry_mpi_print (GCRYMPI_FMT_PGP, buf, &n1, a)) + if (gcry_mpi_print (GCRYMPI_FMT_PGP, buf, n1, &n1, a)) BUG (); pkt = xcalloc (1, sizeof *pkt ); -- cgit v1.2.3