Notification Manager - Fix memory deallocation.
authorhunje.yeon <hunje.yeon@samsung.com>
Fri, 3 Apr 2015 14:46:20 +0000 (23:46 +0900)
committerUze Choi <uzchoi@samsung.com>
Mon, 6 Apr 2015 11:07:21 +0000 (11:07 +0000)
commit83de6e93ae1d6082c4f4d06f365f268e2e121a1c
tree607b89e41318d27b3c0163e31502302f0b915b88
parentb0d2b939f6015a131f04ae6032a64685b1ee9368
Notification Manager - Fix memory deallocation.

Problem: Memory unsafe function is used.
How: Change sprintf to snprinft to avoid memory problems.

Change-Id: I864c5c39c13c07533693b6b59f35e48d15518f4e
Signed-off-by: yeonhunje <hunje.yeon@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/643
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Tested-by: Uze Choi <uzchoi@samsung.com>
service/notification-manager/NotificationManager/src/hosting.c
service/notification-manager/NotificationManager/src/requestHandler.c
service/notification-manager/SConscript
service/notification-manager/SampleApp/linux/sampleConsumer/SampleConsumer.cpp
service/notification-manager/SampleApp/linux/sampleProvider/SampleProvider.cpp