summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2016-09-19 14:47:50 -0700
committerCedric BAIL <cedric@osg.samsung.com>2016-09-19 14:50:57 -0700
commitae23533b0d5e218d8943427a6ca3bf49b3797b93 (patch)
treee75197ef53548f14e3c215fa09c2b134f41634fc
parenta85d142b93f88f96ffaa10629f0051511e0af899 (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 8363965..2602895 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