- if (l > 5 && !strcmp(".conf", & ep->d_name[ l - 5 ])) {
- free(fname);
- xasprintf(&fname, "%s/%s", dname, ep->d_name);
- logger(LOG_DEBUG, "Reading conf file \"%s\"", fname);
+ if(l > 5 && !strcmp(".conf", & ep->d_name[ l - 5 ])) {
+ snprintf(fname, sizeof(fname), "%s/%s", dname, ep->d_name);