From 4c49417cc0dbd7f34269aff00fccafba150af744 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 19 Feb 2019 12:11:22 +0100 Subject: 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 --- src/w32-util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/w32-util.c') 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); } -- cgit v1.2.3