diff options
author | Werner Koch <[email protected]> | 2003-10-25 14:22:42 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2003-10-25 14:22:42 +0000 |
commit | 5ee820978d09fea7aa660201f395434a16950dbb (patch) | |
tree | 953c23c3d8810a57ccc85108638b678c806a92d4 /scd/command.c | |
parent | (learn_status_cb, scd_genkey_cb): Fixed faulty use (diff) | |
download | gnupg-5ee820978d09fea7aa660201f395434a16950dbb.tar.gz gnupg-5ee820978d09fea7aa660201f395434a16950dbb.zip |
* command.c (cmd_genkey, cmd_passwd): Fixed faulty use of
!spacep().
* apdu.c (apdu_open_reader): Hacks for PC/SC under Windows.
Diffstat (limited to 'scd/command.c')
-rw-r--r-- | scd/command.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scd/command.c b/scd/command.c index 8808b10e9..363b46480 100644 --- a/scd/command.c +++ b/scd/command.c @@ -813,7 +813,7 @@ cmd_genkey (ASSUAN_CONTEXT ctx, char *line) /* Skip over options. */ while ( *line == '-' && line[1] == '-' ) { - while (!spacep (line)) + while (*line && !spacep (line)) line++; while (spacep (line)) line++; @@ -821,7 +821,7 @@ cmd_genkey (ASSUAN_CONTEXT ctx, char *line) if (!*line) return set_error (Parameter_Error, "no key number given"); keyno = line; - while (!spacep (line)) + while (*line && !spacep (line)) line++; *line = 0; @@ -894,7 +894,7 @@ cmd_passwd (ASSUAN_CONTEXT ctx, char *line) /* Skip over options. */ while (*line == '-' && line[1] == '-') { - while (!spacep (line)) + while (*line && !spacep (line)) line++; while (spacep (line)) line++; @@ -902,7 +902,7 @@ cmd_passwd (ASSUAN_CONTEXT ctx, char *line) if (!*line) return set_error (Parameter_Error, "no CHV number given"); chvnostr = line; - while (!spacep (line)) + while (*line && !spacep (line)) line++; *line = 0; |