From 25454a2580fe1df891a4acc8f8c0100504de2509 Mon Sep 17 00:00:00 2001 From: Eric Froemling Date: Mon, 21 Aug 2023 10:51:08 -0700 Subject: [PATCH] silencing pcommandbatch compile warning --- src/tools/pcommandbatch/pcommandbatch.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tools/pcommandbatch/pcommandbatch.c b/src/tools/pcommandbatch/pcommandbatch.c index babc79d27..20975fdf2 100644 --- a/src/tools/pcommandbatch/pcommandbatch.c +++ b/src/tools/pcommandbatch/pcommandbatch.c @@ -227,14 +227,14 @@ int establish_connection_(const struct Context_* ctx) { } // In non-debug-mode, route to a log file. - char endbuf[512]; + char endbuf[1024]; if (ctx->debug) { snprintf(endbuf, sizeof(endbuf), " &"); } else { snprintf(endbuf, sizeof(endbuf), " >>%s/worker_log_%s_%d 2>&1 &", ctx->state_dir_path, ctx->instance_prefix, ctx->instance_num); } - char buf[512]; + char buf[2048]; snprintf(buf, sizeof(buf), "%s batchserver --timeout %d --project-dir %s" " --instance %s_%d %s",