diff options
author | Andrey Jivsov <openpgp@brainhub.org> | 2011-02-12 02:38:39 +0100 |
---|---|---|
committer | Andrey Jivsov <openpgp@brainhub.org> | 2011-02-12 02:38:39 +0100 |
commit | e1c38a7ff56c4dfc2e83c35c4ad56f9bd8a9a059 (patch) | |
tree | 3b1aa12687745a38e3408a9c5f615b3a3b8f229c /common/openpgp-oid.c | |
parent | Add ECC sign, verify, encrypt and decrypt tests (diff) | |
download | gnupg2-e1c38a7ff56c4dfc2e83c35c4ad56f9bd8a9a059.tar.xz gnupg2-e1c38a7ff56c4dfc2e83c35c4ad56f9bd8a9a059.zip |
fixed --list-keys on Linux64 bit
Diffstat (limited to 'common/openpgp-oid.c')
-rw-r--r-- | common/openpgp-oid.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/common/openpgp-oid.c b/common/openpgp-oid.c index 222c5a0b2..2a6feafd4 100644 --- a/common/openpgp-oid.c +++ b/common/openpgp-oid.c @@ -145,6 +145,7 @@ openpgp_oid_to_str (gcry_mpi_t a) { const unsigned char *buf; size_t length; + unsigned int lengthi; char *string, *p; int n = 0; unsigned long val, valmask; @@ -157,8 +158,8 @@ openpgp_oid_to_str (gcry_mpi_t a) return NULL; } - buf = gcry_mpi_get_opaque (a, &length); - length = (length+7)/8; + buf = gcry_mpi_get_opaque (a, &lengthi); + length = (lengthi+7)/8; /* The first bytes gives the length; check consistency. */ if (!length || buf[0] != length -1) |