Fix a bug on notifciation_get_text.
authorKyuho Jo <kyuho.jo@samsung.com>
Tue, 26 May 2015 08:02:48 +0000 (17:02 +0900)
committerKyuho Jo <kyuho.jo@samsung.com>
Tue, 26 May 2015 08:02:48 +0000 (17:02 +0900)
Change-Id: I05155758ace4801d7c67af1e829da1633ac22af8
Signed-off-by: Kyuho Jo <kyuho.jo@samsung.com>
src/notification.c

index 20bcb11..ed70e47 100644 (file)
@@ -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;