summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHermet Park <hermet@hermet.pe.kr>2016-09-21 15:19:19 +0900
committerHermet Park <hermet@hermet.pe.kr>2016-09-21 15:19:19 +0900
commit6de3b2c5d36993cf3dbe94e8fbefd04043f91740 (patch)
treec39feac128c884a2750c3c4daf5530d83c5a56f9
parent06bd8dcf330fe31891475c92aa340d4886f47e2b (diff)
edje edje_cc_out: use strncpy().
This change is not much meaningful but avoids an annoying coverity detection.
-rw-r--r--src/bin/edje/edje_cc_out.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/bin/edje/edje_cc_out.c b/src/bin/edje/edje_cc_out.c
index 90a8e41ab3..cf9a831b09 100644
--- a/src/bin/edje/edje_cc_out.c
+++ b/src/bin/edje/edje_cc_out.c
@@ -4036,9 +4036,10 @@ data_process_string(Edje_Part_Collection *pc, const char *prefix, char *s, void
4036 int quote, escape; 4036 int quote, escape;
4037 4037
4038 keyl = strlen(prefix) + 2; 4038 keyl = strlen(prefix) + 2;
4039 key = alloca(keyl + 1); 4039 int key_len = keyl + 1;
4040 key = alloca(key_len);
4040 if (!key) return; 4041 if (!key) return;
4041 strcpy(key, prefix); 4042 strncpy(key, prefix, key_len);
4042 strcat(key, ":\""); 4043 strcat(key, ":\"");
4043 quote = 0; 4044 quote = 0;
4044 escape = 0; 4045 escape = 0;