aboutsummaryrefslogtreecommitdiffstats
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
parentedje: Remove use of insecure strcpy and strcat functions (diff)
downloadefl-feature/security.tar.gz
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
key = alloca(keyl + 1);
if (!key) return;
- strncpy(key, prefix, keyl + 1);
- strncat(key, ":\"", strlen(":\""));
+ memcpy(key, prefix, keyl - 1);
+ strncat(key, ":\"", strlen(":\"") + 1);
quote = 0;
escape = 0;