mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
* keyserver.c (keyserver_spawn): Remove whitespace after keyserver
commands.
This commit is contained in:
parent
75e055f063
commit
72cd3ef859
@ -1,3 +1,8 @@
|
||||
2002-09-12 David Shaw <dshaw@jabberwocky.com>
|
||||
|
||||
* keyserver.c (keyserver_spawn): Remove whitespace after keyserver
|
||||
commands.
|
||||
|
||||
2002-09-10 David Shaw <dshaw@jabberwocky.com>
|
||||
|
||||
* exec.c (expand_args): Remove loop left over from earlier
|
||||
|
@ -543,6 +543,7 @@ keyserver_spawn(int action,STRLIST list,
|
||||
for(;;)
|
||||
{
|
||||
char *ptr;
|
||||
int plen;
|
||||
|
||||
if(iobuf_read_line(spawn->fromchild,&line,&buflen,&maxlen)==0)
|
||||
{
|
||||
@ -552,11 +553,11 @@ keyserver_spawn(int action,STRLIST list,
|
||||
|
||||
ptr=line;
|
||||
|
||||
if(*ptr=='\r')
|
||||
ptr++;
|
||||
|
||||
if(*ptr=='\n')
|
||||
ptr++;
|
||||
/* remove trailing whitespace */
|
||||
plen=strlen(ptr);
|
||||
while(plen>0 && isspace(ptr[plen-1]))
|
||||
plen--;
|
||||
plen[ptr]='\0';
|
||||
|
||||
if(*ptr=='\0')
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user