core: Need to increase an array in the gpg engine.

* src/engine-gpg.c (build_argv): Allcate one slot more for ARGV.
--

Fixes-commit: b9000bc293
This commit is contained in:
Werner Koch 2018-03-23 15:46:18 +01:00
parent e5abf4827a
commit 4763974ef6
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B

View File

@ -875,7 +875,7 @@ build_argv (engine_gpg_t gpg, const char *pgmname)
argc++;
if (!gpg->cmd.used)
argc++; /* --batch */
argc += 1; /* --no-sk-comments */
argc += 2; /* --no-sk-comments, --request-origin */
argv = calloc (argc + 1, sizeof *argv);
if (!argv)