* keyserver.c (keyserver_spawn): Cosmetic, but looks cleaner.
authorDavid Shaw <dshaw@jabberwocky.com>
Sat, 27 Oct 2007 19:40:13 +0000 (19:40 +0000)
committerDavid Shaw <dshaw@jabberwocky.com>
Sat, 27 Oct 2007 19:40:13 +0000 (19:40 +0000)
g10/ChangeLog
g10/keyserver.c

index 28abd44..619949d 100644 (file)
@@ -1,3 +1,7 @@
+2007-10-27  David Shaw  <dshaw@jabberwocky.com>
+
+       * keyserver.c (keyserver_spawn): Cosmetic, but looks cleaner.
+
 2007-10-23  Werner Koch  <wk@g10code.com>
 
        Switched entire package to GPLv3+.
index 7915aff..227af1a 100644 (file)
@@ -1418,7 +1418,7 @@ keyserver_spawn(enum ks_action action,STRLIST list,KEYDB_SEARCH_DESC *desc,
       plen=strlen(ptr);
       while(plen>0 && ascii_isspace(ptr[plen-1]))
        plen--;
-      plen[ptr]='\0';
+      ptr[plen]='\0';
 
       if(*ptr=='\0')
        break;