summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2016-09-22 08:30:37 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2016-09-22 08:30:37 +0900
commitf4606d54eb2644a182a01aeef971fd53a0f53be9 (patch)
tree86d90ba99229f34067b69997e2ddb0422bf301ac
parent72f0bfa2248b8e6595985827b042d94acc50bc76 (diff)
Revert "edje edje_cc_out: use strncpy()."
This reverts commit 6de3b2c5d36993cf3dbe94e8fbefd04043f91740. just dismiss in coverity if the code is not actually wrong
-rw-r--r--src/bin/edje/edje_cc_out.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/bin/edje/edje_cc_out.c b/src/bin/edje/edje_cc_out.c
index cf9a831b09..90a8e41ab3 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
4036 int quote, escape; 4036 int quote, escape;
4037 4037
4038 keyl = strlen(prefix) + 2; 4038 keyl = strlen(prefix) + 2;
4039 int key_len = keyl + 1; 4039 key = alloca(keyl + 1);
4040 key = alloca(key_len);
4041 if (!key) return; 4040 if (!key) return;
4042 strncpy(key, prefix, key_len); 4041 strcpy(key, prefix);
4043 strcat(key, ":\""); 4042 strcat(key, ":\"");
4044 quote = 0; 4043 quote = 0;
4045 escape = 0; 4044 escape = 0;