aboutsummaryrefslogtreecommitdiffstats
path: root/tools/gpg-connect-agent.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/gpg-connect-agent.c')
-rw-r--r--tools/gpg-connect-agent.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/gpg-connect-agent.c b/tools/gpg-connect-agent.c
index 19ff160f0..6372954f6 100644
--- a/tools/gpg-connect-agent.c
+++ b/tools/gpg-connect-agent.c
@@ -325,7 +325,7 @@ read_and_print_response (assuan_context_t ctx)
-/* Connect to teh agebnt and send the standard options. */
+/* Connect to the agent and send the standard options. */
static assuan_context_t
start_agent (void)
{
@@ -357,7 +357,7 @@ start_agent (void)
}
*p++ = 0;
pid = atoi (p);
- while (*p && *p != ':')
+ while (*p && *p != PATHSEP_C)
p++;
prot = *p? atoi (p+1) : 0;
if (prot != 1)