changeset 83107:04f66a874a01

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
author Karoly Lorentey <lorentey@elte.hu>
date Mon, 19 Apr 2004 12:03:00 +0000
parents 8f4a3987f4a8
children c7a76f7d323c
files lib-src/emacsclient.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lib-src/emacsclient.c	Mon Apr 19 08:37:31 2004 +0000
+++ b/lib-src/emacsclient.c	Mon Apr 19 12:03:00 2004 +0000
@@ -280,7 +280,7 @@
     }
   *q++ = 0;
 
-  fprintf (stream, copy);
+  fprintf (stream, "%s", copy);
 
   free (copy);
 }