diff options
author | Werner Koch <[email protected]> | 2003-07-28 08:59:18 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2003-07-28 08:59:18 +0000 |
commit | 979ed0ca26a5ae5538fc5b2aad0a8f2cdd2aae86 (patch) | |
tree | cb331e2255292830b8ecfa68fa38005c98f7b2b4 /g10/comment.c | |
parent | * g10.c: New command --card-status. (diff) | |
download | gnupg-979ed0ca26a5ae5538fc5b2aad0a8f2cdd2aae86.tar.gz gnupg-979ed0ca26a5ae5538fc5b2aad0a8f2cdd2aae86.zip |
Adjusted for use with current libgcrypt (1.1.42).
Diffstat (limited to 'g10/comment.c')
-rw-r--r-- | g10/comment.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 ); |