Add exception handling for '%' 03/110803/2 accepted/tizen/3.0/common/20170120.102108 accepted/tizen/3.0/ivi/20170119.225304 accepted/tizen/3.0/mobile/20170119.225216 accepted/tizen/3.0/tv/20170119.225232 accepted/tizen/3.0/wearable/20170119.225247 submit/tizen_3.0/20170118.065338
authorMyungki Lee <mk5004.lee@samsung.com>
Wed, 18 Jan 2017 05:25:51 +0000 (14:25 +0900)
committerMyungKi Lee <mk5004.lee@samsung.com>
Wed, 18 Jan 2017 06:30:04 +0000 (22:30 -0800)
- At get_text,'%' is not to be ignored.

Change-Id: Ie633e80d8ff7f7de5116f4fe17612a3e4e1ebb80
Signed-off-by: Myungki Lee <mk5004.lee@samsung.com>
src/notification.c

index f53a67da13ce9d574d3b9ba3d4851af0a613fbae..a696ddbdca3ba64f439ccbb4cfb4fab9f76a3297 100755 (executable)
@@ -733,7 +733,11 @@ EXPORT_API int notification_get_text(notification_h noti,
                                                        strncat(result_str, buf_str, max_len);
 
                                                        temp_str += 3;
+                                               } else {
+                                                       strncat(result_str, temp_str, 1);
                                                }
+                                       } else {
+                                               strncat(result_str, temp_str, 1);
                                        }
                                }