From 0675c26b3ccb723c39432088e28a1041d4d12260 Mon Sep 17 00:00:00 2001 From: Kyuho Jo Date: Tue, 26 May 2015 17:02:48 +0900 Subject: [PATCH] Fix a bug on notifciation_get_text. Change-Id: I05155758ace4801d7c67af1e829da1633ac22af8 Signed-off-by: Kyuho Jo --- src/notification.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/notification.c b/src/notification.c index 20bcb11..ed70e47 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; -- 2.7.4