Fixed Svace issue WGID:48188 91/122691/1
authorjin0.kim <jin0.kim@samsung.com>
Mon, 3 Apr 2017 07:05:33 +0000 (15:35 +0830)
committerjin0.kim <jin0.kim@samsung.com>
Mon, 3 Apr 2017 07:05:33 +0000 (15:35 +0830)
Change-Id: Ieeacf672fe2d7c7209a89e08bdbc853627fadc4f

src/datetime/util-time.c

index 35f18df..bcc8420 100755 (executable)
@@ -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;