From 6087973173dba8d068ba4e97e8b290d2ddbf0da8 Mon Sep 17 00:00:00 2001 From: Karoly Lorentey Date: Mon, 19 Apr 2004 12:03:00 +0000 Subject: [PATCH] In emacsclient, protect the xmitted string from fprintf expansion (Dan Nicolaescu). lib-src/emacsclient.c (quote_argument): Protect the string from fprintf expansion (submitted by Dan Nicolaescu). git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-147 --- lib-src/emacsclient.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c index b86277844c9..92f19d4746c 100644 --- a/lib-src/emacsclient.c +++ b/lib-src/emacsclient.c @@ -280,7 +280,7 @@ quote_argument (str, stream) } *q++ = 0; - fprintf (stream, copy); + fprintf (stream, "%s", copy); free (copy); }