summaryrefslogtreecommitdiff
path: root/support/htcacheclean.c
diff options
context:
space:
mode:
authorNick Kew <niq@apache.org>2007-07-20 01:26:55 +0000
committerNick Kew <niq@apache.org>2007-07-20 01:26:55 +0000
commite5061abc935fd70def787ec1aff598e94224b54b (patch)
tree6d311125078b05777d5cfed036877839d443c784 /support/htcacheclean.c
parent78539704411441310d1b6f70172934ba46379632 (diff)
downloadhttpd-e5061abc935fd70def787ec1aff598e94224b54b.tar.gz
Multiple trivial fixes from Christophe JAILLET
PR 38699, 39518, 42005, 42006, 42007, 42008, 42009 The patches are all his, and are sufficiently trivial to review at a glance. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@557837 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'support/htcacheclean.c')
-rw-r--r--support/htcacheclean.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/support/htcacheclean.c b/support/htcacheclean.c
index e2d73caf64..7b923b4071 100644
--- a/support/htcacheclean.c
+++ b/support/htcacheclean.c
@@ -474,9 +474,7 @@ static int process_dir(char *path, apr_pool_t *pool)
e->dtime = d->dtime;
e->hsize = d->hsize;
e->dsize = d->dsize;
- e->basename = apr_palloc(pool,
- strlen(d->basename) + 1);
- strcpy(e->basename, d->basename);
+ e->basename = apr_pstrdup(pool, d->basename);
break;
}
else {