mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
scd: Silence compiler warning.
* scd/app-openpgp.c (build_ecc_privkey_template): Fix allocation size. Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
parent
c1f81eb9fc
commit
2a34a2afea
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user