Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
25b98b34
Commit
25b98b34
authored
Apr 02, 1998
by
Kenichi Handa
Browse files
(selection_data_to_lisp_data): Give
make_string_from_bytes a correct char size.
parent
751fa747
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
src/xselect.c
src/xselect.c
+4
-2
No files found.
src/xselect.c
View file @
25b98b34
...
...
@@ -1506,8 +1506,10 @@ selection_data_to_lisp_data (display, data, size, type, format)
bufsize
=
decoding_buffer_size
(
&
coding
,
size
);
buf
=
(
unsigned
char
*
)
xmalloc
(
bufsize
);
decode_coding
(
&
coding
,
data
,
buf
,
size
,
bufsize
);
str
=
make_string_from_bytes
((
char
*
)
buf
,
coding
.
produced_char
,
coding
.
produced
);
size
=
(
coding
.
fake_multibyte
?
multibyte_chars_in_text
(
buf
,
coding
.
produced
)
:
coding
.
produced_char
);
str
=
make_string_from_bytes
((
char
*
)
buf
,
size
,
coding
.
produced
);
xfree
(
buf
);
}
return
str
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment