From 4794029b9cca288f1545e75581dfdcfa88607c9f Mon Sep 17 00:00:00 2001 From: Brendan Hay Date: Mon, 8 Jun 2020 10:23:29 +0200 Subject: [PATCH] u3: fix format-truncation errors in GCC 8 --- pkg/urbit/noun/events.c | 6 +++--- pkg/urbit/noun/trace.c | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pkg/urbit/noun/events.c b/pkg/urbit/noun/events.c index 86162741d..b010fd13e 100644 --- a/pkg/urbit/noun/events.c +++ b/pkg/urbit/noun/events.c @@ -883,9 +883,9 @@ static c3_o _ce_image_move(u3e_image* img_u, c3_o bak_o) { c3_c old_c[8193]; - c3_c new_c[8193]; - snprintf(old_c, 8192, "%s/.urb/chk/%s.bin", u3P.dir_c, img_u->nam_c); - snprintf(new_c, 8192, "%s.bak", old_c); + c3_c new_c[8197]; + snprintf(old_c, 8193, "%s/.urb/chk/%s.bin", u3P.dir_c, img_u->nam_c); + snprintf(new_c, 8197, "%s.bak", old_c); c3_i ret_i; diff --git a/pkg/urbit/noun/trace.c b/pkg/urbit/noun/trace.c index 1350adc0e..f8fe81320 100644 --- a/pkg/urbit/noun/trace.c +++ b/pkg/urbit/noun/trace.c @@ -285,8 +285,8 @@ u3t_trace_open(c3_c* dir_c) mkdir(fil_c, 0700); } - c3_c lif_c[2048]; - snprintf(lif_c, 2048, "%s/%d.json", fil_c, u3_Host.tra_u.fun_w); + c3_c lif_c[2056]; + snprintf(lif_c, 2056, "%s/%d.json", fil_c, u3_Host.tra_u.fun_w); u3_Host.tra_u.fil_u = fopen(lif_c, "w"); u3_Host.tra_u.nid_w = (int)getpid();