diff options
| author | Karoly Lorentey | 2004-04-19 12:03:00 +0000 |
|---|---|---|
| committer | Karoly Lorentey | 2004-04-19 12:03:00 +0000 |
| commit | 6087973173dba8d068ba4e97e8b290d2ddbf0da8 (patch) | |
| tree | 3a2b18910ae86fbcaabc23c1a7f5c94be7c32064 /lib-src/emacsclient.c | |
| parent | a9711057f01b74aac7735892b32a424aadd0716c (diff) | |
| download | emacs-6087973173dba8d068ba4e97e8b290d2ddbf0da8.tar.gz emacs-6087973173dba8d068ba4e97e8b290d2ddbf0da8.zip | |
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
Diffstat (limited to 'lib-src/emacsclient.c')
| -rw-r--r-- | lib-src/emacsclient.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
| 280 | } | 280 | } |
| 281 | *q++ = 0; | 281 | *q++ = 0; |
| 282 | 282 | ||
| 283 | fprintf (stream, copy); | 283 | fprintf (stream, "%s", copy); |
| 284 | 284 | ||
| 285 | free (copy); | 285 | free (copy); |
| 286 | } | 286 | } |