[Pkg-gnupg-commit] [gpgme] 26/53: core: Fix w32 crash in find_program_in_dir
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Mon Oct 24 19:26:50 UTC 2016
This is an automated email from the git hooks/post-receive script.
dkg pushed a commit to branch experimental
in repository gpgme.
commit 098a2da15b1b46b145add623dec0488abd39bd74
Author: Andre Heinecke <aheinecke at intevation.de>
Date: Mon Oct 10 12:19:48 2016 +0200
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.
---
src/w32-util.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/w32-util.c b/src/w32-util.c
index 9d42139..21de6dc 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;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gpgme.git
More information about the Pkg-gnupg-commit
mailing list