raster pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=f4606d54eb2644a182a01aeef971fd53a0f53be9

commit f4606d54eb2644a182a01aeef971fd53a0f53be9
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
Date:   Thu Sep 22 08:30:37 2016 +0900

    Revert "edje edje_cc_out: use strncpy()."
    
    This reverts commit 6de3b2c5d36993cf3dbe94e8fbefd04043f91740.
    
    just dismiss in coverity if the code is not actually wrong
---
 src/bin/edje/edje_cc_out.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/bin/edje/edje_cc_out.c b/src/bin/edje/edje_cc_out.c
index cf9a831..90a8e41 100644
--- a/src/bin/edje/edje_cc_out.c
+++ b/src/bin/edje/edje_cc_out.c
@@ -4036,10 +4036,9 @@ data_process_string(Edje_Part_Collection *pc, const char 
*prefix, char *s, void
    int quote, escape;
 
    keyl = strlen(prefix) + 2;
-   int key_len = keyl + 1;
-   key = alloca(key_len);
+   key = alloca(keyl + 1);
    if (!key) return;
-   strncpy(key, prefix, key_len);
+   strcpy(key, prefix);
    strcat(key, ":\"");
    quote = 0;
    escape = 0;

-- 


Reply via email to