hmm, I didn't know that alloca() never return null... thanks.
-----Original Message----- From: "Gustavo Sverzut Barbieri"<barbi...@gmail.com> To: "Enlightenment developer list"<enlightenment-devel@lists.sourceforge.net>; Cc: Sent: 2016-09-21 (수) 21:23:04 Subject: Re: [E-devel] [EGIT] [core/efl] master 01/01: edje edje_cc_out: use strncpy(). > + int key_len = keyl + 1; > + key = alloca(key_len); > if (!key) return; > - strcpy(key, prefix); > + strncpy(key, prefix, key_len); as per other comments, memcpy() to shut up coverity. also alloca() will never return NULL... you can remove that if (!key) -- Gustavo Sverzut Barbieri -------------------------------------- Mobile: +55 (16) 99354-9890 ------------------------------------------------------------------------------ _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel ------------------------------------------------------------------------------ _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel