diff options
author | Werner Koch <[email protected]> | 2005-07-25 14:35:04 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2005-07-25 14:35:04 +0000 |
commit | a2d1673d6622e39c41f061e1bffb5ca05c803320 (patch) | |
tree | 292c3b03237aab155753bb3dddc141235e0c1e55 /agent/findkey.c | |
parent | * gpgsm.c (main): New options --no-log-file and --debug-none. (diff) | |
download | gnupg-a2d1673d6622e39c41f061e1bffb5ca05c803320.tar.gz gnupg-a2d1673d6622e39c41f061e1bffb5ca05c803320.zip |
* findkey.c (agent_public_key_from_file): Fixed array assignment.
This was the cause for random segvs.
* call-agent.c (gpgsm_agent_readkey): New.
Diffstat (limited to '')
-rw-r--r-- | agent/findkey.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/agent/findkey.c b/agent/findkey.c index 1cb7efaf3..73ffb530d 100644 --- a/agent/findkey.c +++ b/agent/findkey.c @@ -671,7 +671,7 @@ agent_public_key_from_file (ctrl_t ctrl, *p++ = *s; p = stpcpy (p, " %m)"); assert (argidx < DIM (args)); - args[argidx++] = array[idx]; + args[argidx++] = &array[idx]; } *p++ = ')'; if (uri) |