From: Hermet Park Date: Wed, 21 Sep 2016 06:21:06 +0000 (+0900) Subject: commit 6de3b2c5d36993cf3dbe94e8fbefd04043f91740 X-Git-Tag: accepted/tizen/common/20160927.152708~19 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=84dd25d1547c6a9e25af9f7ec0a92f086b359ae8;p=platform%2Fupstream%2Fefl.git commit 6de3b2c5d36993cf3dbe94e8fbefd04043f91740 Author: Hermet Park Date: Wed Sep 21 15:19:19 2016 +0900 edje edje_cc_out: use strncpy(). This change is not much meaningful but avoids an annoying coverity detection. Change-Id: I40651f0140f6ff3de0b3e987ac3fd2b5540d4dea --- diff --git a/src/bin/edje/edje_cc_out.c b/src/bin/edje/edje_cc_out.c index 0d0382d..b8f5300 100644 --- a/src/bin/edje/edje_cc_out.c +++ b/src/bin/edje/edje_cc_out.c @@ -3807,9 +3807,10 @@ data_process_string(Edje_Part_Collection *pc, const char *prefix, char *s, void int quote, escape; keyl = strlen(prefix) + 2; - key = alloca(keyl + 1); + int key_len = keyl + 1; + key = alloca(key_len); if (!key) return; - strcpy(key, prefix); + strncpy(key, prefix, key_len); strcat(key, ":\""); quote = 0; escape = 0;