]> git.saurik.com Git - apple/ipsec.git/blobdiff - ipsec-tools/racoon/logger.c
ipsec-92.tar.gz
[apple/ipsec.git] / ipsec-tools / racoon / logger.c
index 03a3ac693e27e74a3dab1266a6e595602fd2baf7..b9ac5584f1a998c111a91da40cb5ce1a653fc305 100644 (file)
@@ -87,7 +87,7 @@ log_open(siz, fname)
 
        p->siz = siz;
        if (fname)
-               p->fname = strdup(fname);
+               p->fname = racoon_strdup(fname);
 
        return p;
 }
@@ -105,7 +105,7 @@ log_add(p, str)
        /* 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;