From 2be5a282f8bab945bdb21ab6d9c202bb71951fe1 Mon Sep 17 00:00:00 2001 From: raster Date: Fri, 13 Apr 2012 10:19:45 +0000 Subject: [PATCH] remove +1 misleading extra byte git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@70167 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/elm_cnp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/elm_cnp.c b/src/lib/elm_cnp.c index 263440d..cf08189 100644 --- a/src/lib/elm_cnp.c +++ b/src/lib/elm_cnp.c @@ -417,7 +417,8 @@ elm_cnp_selection_set(Evas_Object *obj, Elm_Sel_Type selection, { if (format == ELM_SEL_FORMAT_IMAGE) { - sel->selbuf = malloc(buflen+1); + // selbuf is actual image data, not text/string + sel->selbuf = malloc(buflen); memcpy(sel->selbuf, selbuf, buflen); } else -- 2.7.4