aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--common/openpgp-oid.c5
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 17d049f99..03e2399a7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2011-02-11 Andrey Jivsov <[email protected]>
+
+ * fixed --list-keys on Linux64 bit
+
2011-02-04 Werner Koch <[email protected]>
* autogen.sh: Ensure that the git pre-commit hoom has been
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)