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 <wk@gnupg.org>
This commit is contained in:
parent
f8312d7c33
commit
4c49417cc0
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user