X-Git-Url: http://www.dolda2000.com/gitweb/?a=blobdiff_plain;f=lib%2Fcf.c;h=719fcad9ba162130119b4c0e3d0d32bdce96982b;hb=43c58ba25e47635c8f44e6b1cbda9247219a16b5;hp=f55a620e0022d60808ad80bf21e8a2867b3d7011;hpb=0fc6fd13c5bd44e6d595b56337a95156fd42ceea;p=ashd.git diff --git a/lib/cf.c b/lib/cf.c index f55a620..719fcad 100644 --- a/lib/cf.c +++ b/lib/cf.c @@ -232,10 +232,11 @@ char *findstdconf(char *name) if((p2 = strrchr(p, '/')) == NULL) continue; *p2 = 0; - if(!access(t = sprintf3("%s/etc/%s", p, name), R_OK)) { + if(!access(t = sprintf2("%s/etc/%s", p, name), R_OK)) { free(path); - return(sstrdup(t)); + return(t); } + free(t); } free(path); return(NULL);