From 4b8511e2618c2813808011c228d22669945589e6 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 12 Apr 2017 15:03:31 +0200 Subject: Add process::id(), make few minor fixes --- butl/process-run.txx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'butl/process-run.txx') diff --git a/butl/process-run.txx b/butl/process-run.txx index 013be4c..8368890 100644 --- a/butl/process-run.txx +++ b/butl/process-run.txx @@ -20,7 +20,7 @@ namespace butl inline int process_stderr (const auto_fd& v) {assert (v.get () >= 0); return v.get ();} - process + LIBBUTL_EXPORT process process_start (const dir_path& cwd, const process_path& pp, const char* cmd[], @@ -55,7 +55,7 @@ namespace butl // const std::size_t args_size (sizeof... (args)); - std::string storage[args_size]; + std::string storage[args_size != 0 ? args_size : 1]; const char* cmd[args_size + 2] = { pp.recall_string (), process_arg_as (args, storage[index])..., -- cgit v1.1