aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndre Heinecke <[email protected]>2016-10-10 10:19:48 +0000
committerAndre Heinecke <[email protected]>2016-10-10 10:19:48 +0000
commit098a2da15b1b46b145add623dec0488abd39bd74 (patch)
treec3e4ed23cf06e08e36dd40802b6ef318b2f73fa1 /src
parentcore: New helper function gpgme_addrspec_from_uid. (diff)
downloadgpgme-098a2da15b1b46b145add623dec0488abd39bd74.tar.gz
gpgme-098a2da15b1b46b145add623dec0488abd39bd74.zip
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.
Diffstat (limited to 'src')
-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 9d42139e..21de6dcf 100644
--- a/src/w32-util.c
+++ b/src/w32-util.c
@@ -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;