mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-31 11:41:32 +01:00
fixed --list-keys on Linux64 bit
This commit is contained in:
parent
7d5ba080be
commit
e1c38a7ff5
@ -1,3 +1,7 @@
|
|||||||
|
2011-02-11 Andrey Jivsov <openpgp@brainhub.org>
|
||||||
|
|
||||||
|
* fixed --list-keys on Linux64 bit
|
||||||
|
|
||||||
2011-02-04 Werner Koch <wk@g10code.com>
|
2011-02-04 Werner Koch <wk@g10code.com>
|
||||||
|
|
||||||
* autogen.sh: Ensure that the git pre-commit hoom has been
|
* autogen.sh: Ensure that the git pre-commit hoom has been
|
||||||
|
@ -145,6 +145,7 @@ openpgp_oid_to_str (gcry_mpi_t a)
|
|||||||
{
|
{
|
||||||
const unsigned char *buf;
|
const unsigned char *buf;
|
||||||
size_t length;
|
size_t length;
|
||||||
|
unsigned int lengthi;
|
||||||
char *string, *p;
|
char *string, *p;
|
||||||
int n = 0;
|
int n = 0;
|
||||||
unsigned long val, valmask;
|
unsigned long val, valmask;
|
||||||
@ -157,8 +158,8 @@ openpgp_oid_to_str (gcry_mpi_t a)
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
buf = gcry_mpi_get_opaque (a, &length);
|
buf = gcry_mpi_get_opaque (a, &lengthi);
|
||||||
length = (length+7)/8;
|
length = (lengthi+7)/8;
|
||||||
|
|
||||||
/* The first bytes gives the length; check consistency. */
|
/* The first bytes gives the length; check consistency. */
|
||||||
if (!length || buf[0] != length -1)
|
if (!length || buf[0] != length -1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user