cleanups; use sys_clone()
[util-vserver.git] / util-vserver / src / vunify-init.hc
index 3eb3852..f5bc778 100644 (file)
@@ -15,7 +15,6 @@
 // along with this program; if not, write to the Free Software
 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
-#include "wrappers-io.h"
 #include "pathconfig.h"
 
 static void
@@ -132,8 +131,8 @@ initMatchList(struct MatchList *list, char const *vserver,
   char                 **fixed_files = 0;
   size_t               fixed_count   = 0;
 
-  char                 **expr_files   = 0;
-  size_t               expr_count     = 0;
+  char                 **expr_files  = 0;
+  size_t               expr_count    = 0;
 
   if (global_args->verbosity>3) {
     WRITE_MSG(1, "Initializing exclude-list for ");
@@ -175,7 +174,7 @@ initMatchList(struct MatchList *list, char const *vserver,
 
 static bool
 initMatchListByVserver(struct MatchList *list, char const *vserver,
-             char const **res_appdir)
+                      char const **res_appdir)
 {
   vcCfgStyle   style;
   char const   *vdir;
@@ -231,7 +230,7 @@ initModeManually(struct Arguments const UNUSED *args, int argc, char *argv[])
     exit(1);
   }
 
-  initMatchList(&global_info.dst_list, 0, argv[0], argv[1]);
+  initMatchList(&global_info.dst_list, 0, strdup(argv[0]), argv[1]);
 
   --count;
   global_info.src_lists.v = Emalloc(sizeof(struct MatchList) * count);