remove +1 misleading extra byte

SVN revision: 70167
This commit is contained in:
Carsten Haitzler 2012-04-13 10:19:45 +00:00
parent ba3c148139
commit b6c827e27a
1 changed files with 2 additions and 1 deletions

View 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