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
This commit is contained in:
Karoly Lorentey 2004-04-19 12:03:00 +00:00
parent a9711057f0
commit 6087973173

View file

@ -280,7 +280,7 @@ quote_argument (str, stream)
}
*q++ = 0;
fprintf (stream, copy);
fprintf (stream, "%s", copy);
free (copy);
}