Revert "protect against non-nul terminated string from mmap in filepreview"
This reverts commit5861d9bef9
. T4543 was already fixed byae23533b0d
.
This commit is contained in:
parent
47cdbdb5af
commit
ff0b513daa
|
@ -931,13 +931,8 @@ _e_wid_fprev_preview_txt_map_success(void *data, Eio_File *handler EINA_UNUSED,
|
|||
char *msg;
|
||||
Evas_Coord mw, mh;
|
||||
|
||||
msg = malloc(length + 1);
|
||||
if (!msg) return;
|
||||
strncpy(msg, map, length);
|
||||
msg[length] = 0;
|
||||
buf = eina_strbuf_new();
|
||||
eina_strbuf_append_length(buf, msg, length);
|
||||
free(msg);
|
||||
eina_strbuf_append_length(buf, map, length);
|
||||
msg = evas_textblock_text_utf8_to_markup(NULL, eina_strbuf_string_get(buf));
|
||||
eina_strbuf_reset(buf);
|
||||
|
||||
|
|
Loading…
Reference in New Issue