p->siz = siz;
if (fname)
- p->fname = strdup(fname);
+ p->fname = racoon_strdup(fname);
return p;
}
/* syslog if p->fname == NULL? */
if (p->buf[p->head])
racoon_free(p->buf[p->head]);
- p->buf[p->head] = strdup(str);
+ p->buf[p->head] = racoon_strdup(str);
p->tbuf[p->head] = time(NULL);
p->head++;
p->head %= p->siz;