From 743f3719032a3e61e73426735271cdb10b8c9f56 Mon Sep 17 00:00:00 2001 From: Thomas Roessler Date: Fri, 2 Feb 2001 12:36:19 +0000 Subject: [PATCH] Apply more conservative quoting to some PGP invocation. --- pgpinvoke.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pgpinvoke.c b/pgpinvoke.c index 42a4b6eba..de1c0c711 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__ */ } -- 2.40.0