silencing pcommandbatch compile warning

This commit is contained in:
Eric Froemling 2023-08-21 10:51:08 -07:00
parent 1ce60b594e
commit 25454a2580
No known key found for this signature in database
GPG Key ID: 89C93F0F8D6D5A98

View File

@ -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",