diff options
author | Jean-Frederic Clere <jfclere@apache.org> | 2006-07-29 00:27:13 +0000 |
---|---|---|
committer | Jean-Frederic Clere <jfclere@apache.org> | 2006-07-29 00:27:13 +0000 |
commit | d8cb409f89331f24529727d3a99492079a3c2f55 (patch) | |
tree | 96518d3e6b39dd85a6fe8bdc5070b1e960aeb94d | |
parent | 36d27e847b99fb6863737451a9d51a387b886eca (diff) | |
download | httpd-d8cb409f89331f24529727d3a99492079a3c2f55.tar.gz |
Use apr_pstrcat instead strcpy + strcat ...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/httpd-proxy-scoreboard@426718 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | support/proxymonitor.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/support/proxymonitor.c b/support/proxymonitor.c index 6619c22f4f..3634c56c55 100644 --- a/support/proxymonitor.c +++ b/support/proxymonitor.c @@ -92,9 +92,7 @@ char * ap_server_root_relative(apr_pool_t *p, const char *name) /* XXX: apr_filepath_merge better ? */ if (basedir && name[0] != '/') { fname = apr_pcalloc(p, strlen(basedir)+strlen(name)+1); - strcpy(fname, basedir); - strcat(fname, "/"); - strcat(fname, name); + apr_pstrcat(fname, basedir, "/", name, NULL); } else { fname = apr_pstrdup(p, name); } |