mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-15 01:52:42 +03:00
u3: fix format-truncation errors in GCC 8
This commit is contained in:
parent
dc518607d9
commit
4794029b9c
@ -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;
|
||||
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user