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> 2002-09-10 David Shaw <dshaw@jabberwocky.com>
* exec.c (expand_args): Remove loop left over from earlier * exec.c (expand_args): Remove loop left over from earlier

View File

@ -543,6 +543,7 @@ keyserver_spawn(int action,STRLIST list,
for(;;) for(;;)
{ {
char *ptr; char *ptr;
int plen;
if(iobuf_read_line(spawn->fromchild,&line,&buflen,&maxlen)==0) if(iobuf_read_line(spawn->fromchild,&line,&buflen,&maxlen)==0)
{ {
@ -552,11 +553,11 @@ keyserver_spawn(int action,STRLIST list,
ptr=line; ptr=line;
if(*ptr=='\r') /* remove trailing whitespace */
ptr++; plen=strlen(ptr);
while(plen>0 && isspace(ptr[plen-1]))
if(*ptr=='\n') plen--;
ptr++; plen[ptr]='\0';
if(*ptr=='\0') if(*ptr=='\0')
break; break;