projects
/
framework
/
uifw
/
elementary.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
wtf? stray escape chars! fix!
[framework/uifw/elementary.git]
/
src
/
lib
/
elm_cnp.c
diff --git
a/src/lib/elm_cnp.c
b/src/lib/elm_cnp.c
index
263440d
..
cf08189
100644
(file)
--- 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