Author: Hermet Park <hermet@hermet.pe.kr>
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
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;