fix text preview to use eina_strbuf_append_length that doesn't call strlen and crash.

This commit is contained in:
Cedric BAIL 2016-09-19 14:47:50 -07:00
parent a85d142b93
commit ae23533b0d
1 changed files with 1 additions and 1 deletions

View File

@ -932,7 +932,7 @@ _e_wid_fprev_preview_txt_map_success(void *data, Eio_File *handler EINA_UNUSED,
Evas_Coord mw, mh;
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));
eina_strbuf_reset(buf);