core: Need to increase an array in the gpg engine.
authorWerner Koch <wk@gnupg.org>
Fri, 23 Mar 2018 14:46:18 +0000 (15:46 +0100)
committerWerner Koch <wk@gnupg.org>
Fri, 23 Mar 2018 14:46:18 +0000 (15:46 +0100)
* src/engine-gpg.c (build_argv): Allcate one slot more for ARGV.
--

Fixes-commit: b9000bc293164ff62efa7e91e5cf6d5fc19d482f

src/engine-gpg.c

index 22d327e..3b9a6ff 100644 (file)
@@ -875,7 +875,7 @@ build_argv (engine_gpg_t gpg, const char *pgmname)
     argc++;
   if (!gpg->cmd.used)
     argc++;    /* --batch */
     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)
 
   argv = calloc (argc + 1, sizeof *argv);
   if (!argv)