Commit 8f38b626 authored by Jaehyun Cho's avatar Jaehyun Cho

Fix st_notify_back bug

The length of the notify uri was set incorrectly. So, it cause
heap crash in some case.
Signed-off-by: default avatarJaehyun Cho <>
Change-Id: I39ee3768a9c991d690d0ad4982d3426e7ac147b8
parent 0d1b3b84
......@@ -266,8 +266,8 @@ notify_add_handler(void *value)
return NULL;
int len = strlen(uri) + 1;
notify_item->uri = (char *)malloc(sizeof(char) * len);
int len = strlen(uri);
notify_item->uri = (char *)malloc(sizeof(char) * (len + 1));
strncpy(notify_item->uri, uri, len);
notify_item->uri[len] = '\0';
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment