Skip to content

Commit

Permalink
silencing pcommandbatch compile warning
Browse files Browse the repository at this point in the history
  • Loading branch information
efroemling committed Aug 21, 2023
1 parent 1ce60b5 commit 25454a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tools/pcommandbatch/pcommandbatch.c
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 25454a2

Please sign in to comment.