summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2012-04-13 10:19:45 +0000
committerCarsten Haitzler <raster@rasterman.com>2012-04-13 10:19:45 +0000
commit1f2a2e3c4fad543a9573007446473ed7d62de73b (patch)
tree4ead1ac350aa7a2c8d60b62b10378276777a1ab8 /src/lib
parentdf4bf32e8ed2e7b0598b3eb3ea51e5296dfdd4f0 (diff)
remove +1 misleading extra byte
SVN revision: 70167
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/elm_cnp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/elm_cnp.c b/src/lib/elm_cnp.c
index 263440d9e..cf081899b 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,
417 { 417 {
418 if (format == ELM_SEL_FORMAT_IMAGE) 418 if (format == ELM_SEL_FORMAT_IMAGE)
419 { 419 {
420 sel->selbuf = malloc(buflen+1); 420 // selbuf is actual image data, not text/string
421 sel->selbuf = malloc(buflen);
421 memcpy(sel->selbuf, selbuf, buflen); 422 memcpy(sel->selbuf, selbuf, buflen);
422 } 423 }
423 else 424 else