Revert "edje edje_cc_out: use strncpy()."

This reverts commit 6de3b2c5d3.

just dismiss in coverity if the code is not actually wrong
This commit is contained in:
Carsten Haitzler 2016-09-22 08:30:37 +09:00
parent 72f0bfa224
commit f4606d54eb
1 changed files with 2 additions and 3 deletions

View File

@ -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;