1
0
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:
David Shaw 2002-09-12 12:10:04 +00:00
parent 75e055f063
commit 72cd3ef859
2 changed files with 11 additions and 5 deletions

View File

@ -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

View File

@ -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;