projects
/
profile
/
mobile
/
apps
/
native
/
quickpanel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
20845e7
)
Fixed Svace issue WGID:48188
91/122691/1
author
jin0.kim
<jin0.kim@samsung.com>
Mon, 3 Apr 2017 07:05:33 +0000
(15:35 +0830)
committer
jin0.kim
<jin0.kim@samsung.com>
Mon, 3 Apr 2017 07:05:33 +0000
(15:35 +0830)
Change-Id: Ieeacf672fe2d7c7209a89e08bdbc853627fadc4f
src/datetime/util-time.c
patch
|
blob
|
history
diff --git
a/src/datetime/util-time.c
b/src/datetime/util-time.c
index
35f18df
..
bcc8420
100755
(executable)
--- a/
src/datetime/util-time.c
+++ b/
src/datetime/util-time.c
@@
-253,8
+253,7
@@
static char *_string_replacer(char *src, const char *pattern, const char *replac
}
ret = tmp;
}
-
- strcpy(ret + out_idx, replace);
+ strncpy(ret + out_idx, replace, strlen(replace));
out_idx += strlen(replace);
state = STATE_FIND;