From: Thomas Roessler Date: Fri, 2 Feb 2001 12:36:19 +0000 (+0000) Subject: Apply more conservative quoting to some PGP invocation. X-Git-Tag: mutt-1-3-15-rel~14 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=675cb8064e3e7373d1fab07deb1964f7dfea6935;p=mutt Apply more conservative quoting to some PGP invocation. --- diff --git a/pgpinvoke.c b/pgpinvoke.c index 42a4b6eb..de1c0c71 100644 --- a/pgpinvoke.c +++ b/pgpinvoke.c @@ -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__ */ }