aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1998-03-21 17:49:39 +0000
committerRichard M. Stallman1998-03-21 17:49:39 +0000
commitc98265b836275014bb14d2705f2baa340dfbef0d (patch)
tree86e1447a4746da843380735c7676d9da50dfa6c6 /src
parent2a1d8be0dc8ff03732c66150b2732cf6db72b3bc (diff)
downloademacs-c98265b836275014bb14d2705f2baa340dfbef0d.tar.gz
emacs-c98265b836275014bb14d2705f2baa340dfbef0d.zip
(selection_data_to_lisp_data): Use make_string_from_bytes.
Diffstat (limited to 'src')
-rw-r--r--src/xselect.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xselect.c b/src/xselect.c
index 475a2fdd1d7..5eb7d432158 100644
--- a/src/xselect.c
+++ b/src/xselect.c
@@ -1506,8 +1506,8 @@ selection_data_to_lisp_data (display, data, size, type, format)
1506 bufsize = decoding_buffer_size (&coding, size); 1506 bufsize = decoding_buffer_size (&coding, size);
1507 buf = (unsigned char *) xmalloc (bufsize); 1507 buf = (unsigned char *) xmalloc (bufsize);
1508 decode_coding (&coding, data, buf, size, bufsize); 1508 decode_coding (&coding, data, buf, size, bufsize);
1509 str = make_multibyte_string ((char *) buf, 1509 str = make_string_from_bytes ((char *) buf,
1510 coding.produced_char, coding.produced); 1510 coding.produced_char, coding.produced);
1511 xfree (buf); 1511 xfree (buf);
1512 } 1512 }
1513 return str; 1513 return str;