summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2016-09-19 14:47:50 -0700
committerMike Blumenkrantz <zmike@osg.samsung.com>2016-10-04 09:37:15 -0400
commit8e90c421a396c6b78ab6b484541c18bde036ae4b (patch)
treeb33a531ebc8b9c63c96df35359bd615ec6e47b26
parent473e77d0165b190535ec45ae0f0222f0ab4a5e1e (diff)
fix text preview to use eina_strbuf_append_length that doesn't call strlen and crash.
-rw-r--r--src/bin/e_widget_filepreview.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/e_widget_filepreview.c b/src/bin/e_widget_filepreview.c
index 8363965ea..26028952f 100644
--- a/src/bin/e_widget_filepreview.c
+++ b/src/bin/e_widget_filepreview.c
@@ -932,7 +932,7 @@ _e_wid_fprev_preview_txt_map_success(void *data, Eio_File *handler EINA_UNUSED,
932 Evas_Coord mw, mh; 932 Evas_Coord mw, mh;
933 933
934 buf = eina_strbuf_new(); 934 buf = eina_strbuf_new();
935 eina_strbuf_append_n(buf, map, length); 935 eina_strbuf_append_length(buf, map, length);
936 msg = evas_textblock_text_utf8_to_markup(NULL, eina_strbuf_string_get(buf)); 936 msg = evas_textblock_text_utf8_to_markup(NULL, eina_strbuf_string_get(buf));
937 eina_strbuf_reset(buf); 937 eina_strbuf_reset(buf);
938 938