> + 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