From: Kyuho Jo Date: Tue, 26 May 2015 08:02:48 +0000 (+0900) Subject: Fix a bug on notifciation_get_text. X-Git-Tag: submit/tizen_mobile/20150527.071719^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0675c26b3ccb723c39432088e28a1041d4d12260;p=platform%2Fcore%2Fapi%2Fnotification.git Fix a bug on notifciation_get_text. Change-Id: I05155758ace4801d7c67af1e829da1633ac22af8 Signed-off-by: Kyuho Jo --- diff --git a/src/notification.c b/src/notification.c index 20bcb113..ed70e470 100644 --- a/src/notification.c +++ b/src/notification.c @@ -792,7 +792,7 @@ EXPORT_API int notification_get_text(notification_h noti, translated_str = NULL; } - strncpy(buf_str, sizeof(buf_str), translated_str); + strncpy(buf_str, translated_str, sizeof(buf_str)); int src_len = strlen(result_str); int max_len = NOTI_TEXT_RESULT_LEN - src_len - 1;