]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Use apr_pstrcat instead strcpy + strcat ...
authorJean-Frederic Clere <jfclere@apache.org>
Sat, 29 Jul 2006 00:27:13 +0000 (00:27 +0000)
committerJean-Frederic Clere <jfclere@apache.org>
Sat, 29 Jul 2006 00:27:13 +0000 (00:27 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/httpd-proxy-scoreboard@426718 13f79535-47bb-0310-9956-ffa450edef68

support/proxymonitor.c

index 6619c22f4fe3e948fe8bcf2c67e9b5121c2b6d29..3634c56c559b5e800f25524a81f1542f5ef18bd1 100644 (file)
@@ -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);
     }