aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2019-02-19 11:11:22 +0000
committerWerner Koch <[email protected]>2019-02-19 11:11:22 +0000
commit4c49417cc0dbd7f34269aff00fccafba150af744 (patch)
tree0174fab4d014544aea3d199b255573904423f18a
parenttests: Fix memleak in run-threaded (diff)
downloadgpgme-4c49417cc0dbd7f34269aff00fccafba150af744.tar.gz
gpgme-4c49417cc0dbd7f34269aff00fccafba150af744.zip
core,w32: Fix missing sentinel in dir name builder.
* src/w32-util.c (_gpgme_get_gpgconf_path): Add NULL top strconcat. -- Fortunately this is called early and the stack like cleared out so that we have not seen wrong behaviour until now. We should really fix all these annoying HANDLE/int cast warnings and alike so that real bugs are not drowned by them. GnuPG-bug-id: 4369 Signed-off-by: Werner Koch <[email protected]>
-rw-r--r--src/w32-util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/w32-util.c b/src/w32-util.c
index e37fb430..9802d9cc 100644
--- a/src/w32-util.c
+++ b/src/w32-util.c
@@ -601,7 +601,7 @@ _gpgme_get_gpgconf_path (void)
/* 5. Try to find gpgconf.exe relative to us. */
if (!gpgconf && inst_dir)
{
- char *dir = _gpgme_strconcat (inst_dir, "\\..\\..\\GnuPG\\bin");
+ char *dir = _gpgme_strconcat (inst_dir, "\\..\\..\\GnuPG\\bin", NULL);
gpgconf = find_program_in_dir (dir, name);
free (dir);
}