summaryrefslogtreecommitdiff
path: root/locks
diff options
context:
space:
mode:
authormanoj <manoj@13f79535-47bb-0310-9956-ffa450edef68>2000-03-16 22:59:54 +0000
committermanoj <manoj@13f79535-47bb-0310-9956-ffa450edef68>2000-03-16 22:59:54 +0000
commit5025f55b1dde7c1a985553aa0f5bd518268bbbf2 (patch)
tree92c0ea5dcbd1f8e416dbb8635620e8e31ea35ad8 /locks
parent25e27d2cf4e1abc5e364834a7ec3f2987dd9644e (diff)
downloadlibapr-5025f55b1dde7c1a985553aa0f5bd518268bbbf2.tar.gz
Simplify filename copying in child_init_lock. :)
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59722 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'locks')
-rw-r--r--locks/unix/crossproc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/locks/unix/crossproc.c b/locks/unix/crossproc.c
index 4f371a03b..a50a5693a 100644
--- a/locks/unix/crossproc.c
+++ b/locks/unix/crossproc.c
@@ -376,8 +376,7 @@ ap_status_t child_init_lock(struct lock_t **lock, ap_context_t *cont, char *fnam
new = (struct lock_t *)ap_palloc(cont, sizeof(struct lock_t));
- new->fname = ap_palloc(cont, strlen(fname));
- strcpy(new->fname, fname);
+ new->fname = ap_pstrdup(cont, fname);
new->interproc = open(new->fname, O_CREAT | O_WRONLY | O_EXCL, 0600);
if (new->interproc == -1) {
destroy_inter_lock(new);