summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2018-05-10 12:11:29 -0400
committerChris Michael <cp.michael@samsung.com>2018-05-10 12:11:29 -0400
commitd45812f4ed38a6869822508896cfbeb2dd30ef58 (patch)
treeac83f0e35539e218c72b10643791ac7a3adc020e
parent36ad61a0070f98e191d6e2550d6dcf96ccf4dc2b (diff)
edje: Update code to use memcpy as per reviewfeature/security
-rw-r--r--src/bin/edje/edje_cc_out.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/edje/edje_cc_out.c b/src/bin/edje/edje_cc_out.c
index c953b8def3..6f8ef86021 100644
--- a/src/bin/edje/edje_cc_out.c
+++ b/src/bin/edje/edje_cc_out.c
@@ -4184,8 +4184,8 @@ data_process_string(Edje_Part_Collection *pc, const char *prefix, char *s, void
4184 key = alloca(keyl + 1); 4184 key = alloca(keyl + 1);
4185 if (!key) return; 4185 if (!key) return;
4186 4186
4187 strncpy(key, prefix, keyl + 1); 4187 memcpy(key, prefix, keyl - 1);
4188 strncat(key, ":\"", strlen(":\"")); 4188 strncat(key, ":\"", strlen(":\"") + 1);
4189 4189
4190 quote = 0; 4190 quote = 0;
4191 escape = 0; 4191 escape = 0;