diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2015-01-19 20:28:51 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2015-01-19 20:29:26 -0800 |
commit | 97bf923892a781b71442562510c9ef8492eb1dfe (patch) | |
tree | 26b7237240c3cd002389809841dce2642c5f0fe3 /src/minibuf.c | |
parent | 3ca37be9e754ca7e593736a31f0124722011d900 (diff) | |
download | emacs-97bf923892a781b71442562510c9ef8492eb1dfe.tar.gz |
Fix minor bugs with printing null bytes
* minibuf.c (read_minibuf_noninteractive):
* xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]:
Work even if the Lisp string contains a null byte.
Diffstat (limited to 'src/minibuf.c')
-rw-r--r-- | src/minibuf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/minibuf.c b/src/minibuf.c index 07f489258e1..0d6e2c79813 100644 --- a/src/minibuf.c +++ b/src/minibuf.c @@ -217,7 +217,7 @@ read_minibuf_noninteractive (Lisp_Object map, Lisp_Object initial, suppress_echo_on_tty (fileno (stdin)); } - fprintf (stdout, "%s", SDATA (prompt)); + fwrite (SDATA (prompt), 1, SBYTES (prompt), stdout); fflush (stdout); val = Qnil; |