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:
parent
0ea2ff6790
commit
098a2da15b
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user