1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-03 22:56:33 +02:00

* g10.c (main) [ENABLE_CARD_SUPPORT]: Add a default for

--pcsc-driver.

* cardglue.c (learn_status_cb): Fixed faulty use of !space.
This commit is contained in:
Werner Koch 2003-10-25 14:17:24 +00:00
parent 8fbf5b8aba
commit bc45e6e065
5 changed files with 27 additions and 7 deletions

View file

@ -413,14 +413,14 @@ learn_status_cb (void *opaque, const char *line)
while (spacep (p))
p++;
parm->chv1_cached = atoi (p);
while (!spacep (p))
while (*p && !spacep (p))
p++;
while (spacep (p))
p++;
for (i=0; *p && i < 3; i++)
{
parm->chvmaxlen[i] = atoi (p);
while (!spacep (p))
while (*p && !spacep (p))
p++;
while (spacep (p))
p++;
@ -428,7 +428,7 @@ learn_status_cb (void *opaque, const char *line)
for (i=0; *p && i < 3; i++)
{
parm->chvretry[i] = atoi (p);
while (!spacep (p))
while (*p && !spacep (p))
p++;
while (spacep (p))
p++;
@ -439,7 +439,7 @@ learn_status_cb (void *opaque, const char *line)
else if (keywordlen == 7 && !memcmp (keyword, "KEY-FPR", keywordlen))
{
int no = atoi (line);
while (!spacep (line))
while (* line && !spacep (line))
line++;
while (spacep (line))
line++;
@ -568,7 +568,7 @@ genkey_status_cb (void *opaque, const char *line)
const char *name = line;
char *buf;
while (!spacep (line))
while (*line && !spacep (line))
line++;
while (spacep (line))
line++;