forked from enlightenment/efl
parent
46b0eb6003
commit
255900a10f
|
@ -979,6 +979,7 @@ notify_handler_html(Cnp_Selection *sel, Ecore_X_Event_Selection_Notify *notify)
|
|||
cnp_debug("Got some HTML: Checking encoding is useful\n");
|
||||
data = notify->data;
|
||||
char *stripstr = malloc(sizeof(char) * (data->length + 1));
|
||||
if (!stripstr) return;
|
||||
strncpy(stripstr, (char *)data->data, data->length);
|
||||
stripstr[data->length] = '\0';
|
||||
|
||||
|
|
Loading…
Reference in New Issue