diff options
author | manoj <manoj@13f79535-47bb-0310-9956-ffa450edef68> | 2000-03-16 22:59:54 +0000 |
---|---|---|
committer | manoj <manoj@13f79535-47bb-0310-9956-ffa450edef68> | 2000-03-16 22:59:54 +0000 |
commit | 5025f55b1dde7c1a985553aa0f5bd518268bbbf2 (patch) | |
tree | 92c0ea5dcbd1f8e416dbb8635620e8e31ea35ad8 /locks | |
parent | 25e27d2cf4e1abc5e364834a7ec3f2987dd9644e (diff) | |
download | libapr-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.c | 3 |
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); |