u3: fix format-truncation errors in GCC 8

This commit is contained in:
Brendan Hay 2020-06-08 10:23:29 +02:00 committed by Joe Bryan
parent dc518607d9
commit 4794029b9c
2 changed files with 5 additions and 5 deletions

View File

@ -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;

View File

@ -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();