remove +1 misleading extra byte
authorraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 13 Apr 2012 10:19:45 +0000 (10:19 +0000)
committerraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 13 Apr 2012 10:19:45 +0000 (10:19 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@70167 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/elm_cnp.c

index 263440d..cf08189 100644 (file)
@@ -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