Dear EFL Developers,

I have found a bug which occurs when using elm_selection_set and 
elm_selection_get with ELM_SEL_FORMAT_HTML for non elm-entry. If copied string 
has i.e. 4 character ("TEST") Elm_Selection_Data returns 4 instead of returning 
5 in case of using ELM_SEL_FORMAT_TEXT, and pasted string includes some 
garbage, which obviously is the lack of \0 at the end.
My patch moves existing code adding \0 to the string to the begging of the 
function so it can be used also when callback is passed (for non-elm_entry 
objects).

BR,
Michal

________________________________
The above message is intended solely for the named addressee and may contain 
trade secret, industrial technology or privileged and confidential information 
otherwise protected under applicable law. Any unauthorized dissemination, 
distribution, copying or use of the information contained in this communication 
is strictly prohibited. If you have received this communication in error, 
please notify sender by email and delete this communication immediately.


Powy?sza wiadomo?? przeznaczona jest wy??cznie dla adresata niniejszej 
wiadomo?ci i mo?e zawiera? informacje b?d?ce tajemnic? handlow?, tajemnic? 
przedsi?biorstwa oraz informacje o charakterze poufnym chronione obowi?zuj?cymi 
przepisami prawa. Jakiekolwiek nieuprawnione ich rozpowszechnianie, 
dystrybucja, kopiowanie lub u?ycie informacji zawartych w powy?szej wiadomo?ci 
jest zabronione. Je?li otrzyma?e? powy?sz? wiadomo?? omy?kowo, uprzejmie prosz? 
poinformuj o tym fakcie drog? mailow? nadawc? tej wiadomo?ci oraz niezw?ocznie 
usu? powy?sz? wiadomo?? ze swojego komputera.

Attachment: 0001-elementary-elm_cnp-fix-non-NULL-terminated-string-bu.patch
Description: 0001-elementary-elm_cnp-fix-non-NULL-terminated-string-bu.patch

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to