mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-21 14:47:03 +01:00
(learn_status_cb, scd_genkey_cb): Fixed faulty use
of !spacep().
This commit is contained in:
parent
21be16dba9
commit
f936866734
@ -1,3 +1,8 @@
|
|||||||
|
2003-10-25 Werner Koch <wk@gnupg.org>
|
||||||
|
|
||||||
|
* call-agent.c (learn_status_cb, scd_genkey_cb): Fixed faulty use
|
||||||
|
of !spacep().
|
||||||
|
|
||||||
2003-10-20 Werner Koch <wk@gnupg.org>
|
2003-10-20 Werner Koch <wk@gnupg.org>
|
||||||
|
|
||||||
* card-util.c (card_edit): New command "passwd". Add logic to
|
* card-util.c (card_edit): New command "passwd". Add logic to
|
||||||
|
@ -520,14 +520,14 @@ learn_status_cb (void *opaque, const char *line)
|
|||||||
while (spacep (p))
|
while (spacep (p))
|
||||||
p++;
|
p++;
|
||||||
parm->chv1_cached = atoi (p);
|
parm->chv1_cached = atoi (p);
|
||||||
while (!spacep (p))
|
while (*p && !spacep (p))
|
||||||
p++;
|
p++;
|
||||||
while (spacep (p))
|
while (spacep (p))
|
||||||
p++;
|
p++;
|
||||||
for (i=0; *p && i < 3; i++)
|
for (i=0; *p && i < 3; i++)
|
||||||
{
|
{
|
||||||
parm->chvmaxlen[i] = atoi (p);
|
parm->chvmaxlen[i] = atoi (p);
|
||||||
while (!spacep (p))
|
while (*p && !spacep (p))
|
||||||
p++;
|
p++;
|
||||||
while (spacep (p))
|
while (spacep (p))
|
||||||
p++;
|
p++;
|
||||||
@ -535,7 +535,7 @@ learn_status_cb (void *opaque, const char *line)
|
|||||||
for (i=0; *p && i < 3; i++)
|
for (i=0; *p && i < 3; i++)
|
||||||
{
|
{
|
||||||
parm->chvretry[i] = atoi (p);
|
parm->chvretry[i] = atoi (p);
|
||||||
while (!spacep (p))
|
while (*p && !spacep (p))
|
||||||
p++;
|
p++;
|
||||||
while (spacep (p))
|
while (spacep (p))
|
||||||
p++;
|
p++;
|
||||||
@ -546,7 +546,7 @@ learn_status_cb (void *opaque, const char *line)
|
|||||||
else if (keywordlen == 7 && !memcmp (keyword, "KEY-FPR", keywordlen))
|
else if (keywordlen == 7 && !memcmp (keyword, "KEY-FPR", keywordlen))
|
||||||
{
|
{
|
||||||
int no = atoi (line);
|
int no = atoi (line);
|
||||||
while (!spacep (line))
|
while (*line && !spacep (line))
|
||||||
line++;
|
line++;
|
||||||
while (spacep (line))
|
while (spacep (line))
|
||||||
line++;
|
line++;
|
||||||
@ -674,7 +674,7 @@ scd_genkey_cb (void *opaque, const char *line)
|
|||||||
gcry_mpi_t a;
|
gcry_mpi_t a;
|
||||||
const char *name = line;
|
const char *name = line;
|
||||||
|
|
||||||
while (!spacep (line))
|
while (*line && !spacep (line))
|
||||||
line++;
|
line++;
|
||||||
while (spacep (line))
|
while (spacep (line))
|
||||||
line++;
|
line++;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user