* keyserver.c (keyserver_spawn): Cosmetic, but looks cleaner.
[gnupg.git] / g10 / keyserver.c
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;