mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-23 12:36:51 +03:00
Pass UTF-8 text length for conversion
This commit is contained in:
parent
a79e098817
commit
41ed8e3da3
@ -256,9 +256,7 @@ bool gui_add_to_clipboard(const char *text, size_t length, bool space,
|
||||
if(nsoption_bool(utf8_clipboard)) {
|
||||
WriteChunkBytes(iffh,text,length);
|
||||
} else {
|
||||
buffer = ami_utf8_easy(text);
|
||||
|
||||
if(buffer) {
|
||||
if(utf8_to_local_encoding(text, length, &buffer) == UTF8_CONVERT_OK) {
|
||||
char *p;
|
||||
|
||||
p = buffer;
|
||||
|
Loading…
Reference in New Issue
Block a user