summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyuho Jo <kyuho.jo@samsung.com>2015-05-26 17:02:48 +0900
committerKyuho Jo <kyuho.jo@samsung.com>2015-05-26 17:02:48 +0900
commit0675c26b3ccb723c39432088e28a1041d4d12260 (patch)
tree43da05bc3242107332ec985819230e9e542ea628
parent579cf004c70c97f5059ef812dd09ad1c966c5b91 (diff)
downloadnotification-0675c26b3ccb723c39432088e28a1041d4d12260.tar.gz
notification-0675c26b3ccb723c39432088e28a1041d4d12260.tar.bz2
notification-0675c26b3ccb723c39432088e28a1041d4d12260.zip
Fix a bug on notifciation_get_text.
Change-Id: I05155758ace4801d7c67af1e829da1633ac22af8 Signed-off-by: Kyuho Jo <kyuho.jo@samsung.com>
-rw-r--r--src/notification.c2
1 files changed, 1 insertions, 1 deletions
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;