summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHermet Park <hermet@hermet.pe.kr>2016-09-21 13:30:44 +0900
committerHermet Park <hermet@hermet.pe.kr>2016-09-21 13:30:44 +0900
commitab1a72f5e7df6fe0adef54bdcddd9867a2ebe3a6 (patch)
treeab8a28993a0db92bcc8424dd11722eaa62c81602 /src
parentff7511ae123bbaaefcd716edc2aabf57a9139da8 (diff)
edje/edje_cc: use strncpy() instead of strcpy().
strncpy() is better for security. Also, this change avoids annoying coverity detection.
Diffstat (limited to 'src')
-rw-r--r--src/bin/edje/edje_cc_parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/edje/edje_cc_parse.c b/src/bin/edje/edje_cc_parse.c
index 525c71d394..efabe22d58 100644
--- a/src/bin/edje/edje_cc_parse.c
+++ b/src/bin/edje/edje_cc_parse.c
@@ -391,7 +391,7 @@ next_token(char *p, char *end, char **new_p, int *delim)
391 l = sscanf(tmpstr, "%*s %i \"%[^\"]\"", &nm, fl); 391 l = sscanf(tmpstr, "%*s %i \"%[^\"]\"", &nm, fl);
392 if (l == 2) 392 if (l == 2)
393 { 393 {
394 strcpy(file_buf, fl); 394 strncpy(file_buf, fl, sizeof(file_buf));
395 line = nm; 395 line = nm;
396 file_in = file_buf; 396 file_in = file_buf;
397 } 397 }