projects
/
platform
/
core
/
pim
/
calendar-service.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0910b77
)
ver1.0 vcalendar rrule string composes wrong negative digit in mday
31/58131/1
author
Jeesun Kim
<iamjs.kim@samsung.com>
Wed, 27 Jan 2016 23:07:18 +0000
(08:07 +0900)
committer
Jeesun Kim
<iamjs.kim@samsung.com>
Wed, 27 Jan 2016 23:07:18 +0000
(08:07 +0900)
Change-Id: I2b6328500376f73b6b5f78abda69d96395b04f27
common/cal_vcalendar_make.c
patch
|
blob
|
history
diff --git
a/common/cal_vcalendar_make.c
b/common/cal_vcalendar_make.c
index
a980c5b
..
bb93120
100644
(file)
--- a/
common/cal_vcalendar_make.c
+++ b/
common/cal_vcalendar_make.c
@@
-512,7
+512,8
@@
int _cal_vcalendar_make_rrule_append_mday(char *buf, int buf_len, char *mday)
continue;
int num = atoi(t[i]);
- ret += snprintf(buf +len +ret, buf_len -len -ret, "%d%s", num, 0 < num ? " " : "- ");
+ ret += snprintf(buf +len +ret, buf_len -len -ret, "%d%s",
+ num < 0 ? (-1 * num) : num, num < 0 ? "- " : " ");
}
g_strfreev(t);