1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-02 22:46:30 +02: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

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