diff options
author | Myungki Lee <mk5004.lee@samsung.com> | 2017-01-18 14:25:51 +0900 |
---|---|---|
committer | MyungKi Lee <mk5004.lee@samsung.com> | 2017-01-17 22:30:04 -0800 |
commit | 2e261e710c04cc8466350ecd5e136a6a19d30233 (patch) | |
tree | 6371dae087f1c40c57bb3b29a0ee8543c1fdf59f | |
parent | a136b35c1d179bff20a0df90b43badff27b1c5cf (diff) | |
download | notification-2e261e710c04cc8466350ecd5e136a6a19d30233.tar.gz notification-2e261e710c04cc8466350ecd5e136a6a19d30233.tar.bz2 notification-2e261e710c04cc8466350ecd5e136a6a19d30233.zip |
Add exception handling for '%'submit/tizen_3.0/20170118.065338accepted/tizen/3.0/wearable/20170119.225247accepted/tizen/3.0/tv/20170119.225232accepted/tizen/3.0/mobile/20170119.225216accepted/tizen/3.0/ivi/20170119.225304accepted/tizen/3.0/common/20170120.102108
- At get_text,'%' is not to be ignored.
Change-Id: Ie633e80d8ff7f7de5116f4fe17612a3e4e1ebb80
Signed-off-by: Myungki Lee <mk5004.lee@samsung.com>
-rwxr-xr-x | src/notification.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/notification.c b/src/notification.c index f53a67d..a696ddb 100755 --- a/src/notification.c +++ b/src/notification.c @@ -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); } } |