]> granicus.if.org Git - neomutt/commitdiff
Apply more conservative quoting to some PGP invocation.
authorThomas Roessler <roessler@does-not-exist.org>
Fri, 2 Feb 2001 12:36:19 +0000 (12:36 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Fri, 2 Feb 2001 12:36:19 +0000 (12:36 +0000)
pgpinvoke.c

index 42a4b6eba7f3ed84b0157729e3845b6889112c50..de1c0c711ea96d3144eb99dfd2da200bb9e69d48 100644 (file)
@@ -331,12 +331,14 @@ pid_t pgp_invoke_list_keys (FILE **pgpin, FILE **pgpout, FILE **pgperr,
 {
   char uids[HUGE_STRING];
   char tmpuids[HUGE_STRING];
-
+  char quoted[HUGE_STRING];
+  
   *uids = '\0';
   
   for (; hints; hints = hints->next)
   {
-    snprintf (tmpuids, sizeof (tmpuids), "%s %s", uids, (char *) hints->data);
+    mutt_quote_filename (quoted, sizeof (quoted), (char *) hints->data);
+    snprintf (tmpuids, sizeof (tmpuids), "%s %s", uids, quoted);
     strcpy (uids, tmpuids);    /* __STRCPY_CHECKED__ */
   }