forked from enlightenment/enlightenment
fix text preview to use eina_strbuf_append_length that doesn't call strlen and crash.
This commit is contained in:
parent
473e77d016
commit
8e90c421a3
|
@ -932,7 +932,7 @@ _e_wid_fprev_preview_txt_map_success(void *data, Eio_File *handler EINA_UNUSED,
|
||||||
Evas_Coord mw, mh;
|
Evas_Coord mw, mh;
|
||||||
|
|
||||||
buf = eina_strbuf_new();
|
buf = eina_strbuf_new();
|
||||||
eina_strbuf_append_n(buf, map, length);
|
eina_strbuf_append_length(buf, map, length);
|
||||||
msg = evas_textblock_text_utf8_to_markup(NULL, eina_strbuf_string_get(buf));
|
msg = evas_textblock_text_utf8_to_markup(NULL, eina_strbuf_string_get(buf));
|
||||||
eina_strbuf_reset(buf);
|
eina_strbuf_reset(buf);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue