diff options
author | Werner Koch <[email protected]> | 2015-07-26 10:55:53 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2015-07-26 10:55:53 +0000 |
commit | 55e64f47a52d76e097a01eb4044a88a4e10d6a87 (patch) | |
tree | f11aaf98e2664fb201fe6c29a4c0f7ce623749fe | |
parent | Replace GNUPG_GCC_A_ macros by GPGRT_ATTR_ macros. (diff) | |
download | gnupg-55e64f47a52d76e097a01eb4044a88a4e10d6a87.tar.gz gnupg-55e64f47a52d76e097a01eb4044a88a4e10d6a87.zip |
scd: Fix size_t/unsigned int mismatch.
* scd/app-openpgp.c (ecc_writekey): Use extra var n.
-rw-r--r-- | scd/app-openpgp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scd/app-openpgp.c b/scd/app-openpgp.c index 72f764061..87208f44c 100644 --- a/scd/app-openpgp.c +++ b/scd/app-openpgp.c @@ -3366,6 +3366,7 @@ ecc_writekey (app_t app, gpg_error_t (*pincb)(void*, const char *, char **), { gcry_mpi_t oid; const unsigned char *oidbuf; + unsigned int n; size_t oid_len; unsigned char fprbuf[20]; @@ -3373,7 +3374,8 @@ ecc_writekey (app_t app, gpg_error_t (*pincb)(void*, const char *, char **), if (err) goto leave; - oidbuf = gcry_mpi_get_opaque (oid, &oid_len); + oidbuf = gcry_mpi_get_opaque (oid, &n); + oid_len = n; if (!oidbuf) { err = gpg_error_from_syserror (); |