elementary/cnp - + null check

SVN revision: 71292
This commit is contained in:
ChunEon Park 2012-05-22 04:30:24 +00:00
parent 46b0eb6003
commit 255900a10f
1 changed files with 1 additions and 0 deletions

View File

@ -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';