core: Fix w32 crash in find_program_in_dir

* src/w32-util.c (find_program_in_dir): Fix call to _gpgme_strconcat.

--
This fixes a crash introduced by dc39552d0 because it tried
to concat a strlen.
This commit is contained in:
Andre Heinecke 2016-10-10 12:19:48 +02:00
parent 0ea2ff6790
commit 098a2da15b

View File

@ -390,7 +390,7 @@ find_program_in_dir (const char *dir, const char *name)
{
char *result;
result = _gpgme_strconcat (dir, "\\", strlen (name), NULL);
result = _gpgme_strconcat (dir, "\\", name, NULL);
if (!result)
return NULL;