diff options
author | NIIBE Yutaka <gniibe@fsij.org> | 2020-07-31 10:03:09 +0200 |
---|---|---|
committer | NIIBE Yutaka <gniibe@fsij.org> | 2020-07-31 10:03:09 +0200 |
commit | 2a34a2afea5fcb5f4ed206afa110650db3dd7ef0 (patch) | |
tree | ac7a3792bbb19d722e65c390c8019ac63db4e17a /scd | |
parent | w32: Add NETLIBS for sm/t-minip12. (diff) | |
download | gnupg2-2a34a2afea5fcb5f4ed206afa110650db3dd7ef0.tar.xz gnupg2-2a34a2afea5fcb5f4ed206afa110650db3dd7ef0.zip |
scd: Silence compiler warning.
* scd/app-openpgp.c (build_ecc_privkey_template): Fix allocation size.
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
Diffstat (limited to 'scd')
-rw-r--r-- | scd/app-openpgp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scd/app-openpgp.c b/scd/app-openpgp.c index b2cda013f..39b390b3e 100644 --- a/scd/app-openpgp.c +++ b/scd/app-openpgp.c @@ -3573,11 +3573,11 @@ build_ecc_privkey_template (app_t app, int keyno, const unsigned char *ecc_q, size_t ecc_q_len, unsigned char **result, size_t *resultlen) { - unsigned char privkey[2+2]; + unsigned char privkey[2*(1+3)]; size_t privkey_len; - unsigned char exthdr[2+2+1]; + unsigned char exthdr[2+2+3]; size_t exthdr_len; - unsigned char suffix[2+1]; + unsigned char suffix[2+3]; size_t suffix_len; unsigned char *tp; size_t datalen; |