serf: fix format-truncation errors in GCC 8

This commit is contained in:
Brendan Hay 2020-06-08 10:24:04 +02:00 committed by Joe Bryan
parent 4794029b9c
commit 6fb743bb4c

View File

@ -220,8 +220,8 @@ _serf_grab(u3_serf* sef_u)
mkdir(nam_c, 0700); mkdir(nam_c, 0700);
} }
c3_c man_c[2048]; c3_c man_c[2054];
snprintf(man_c, 2048, "%s/%s-serf.txt", nam_c, wen_c); snprintf(man_c, 2053, "%s/%s-serf.txt", nam_c, wen_c);
fil_u = fopen(man_c, "w"); fil_u = fopen(man_c, "w");
fprintf(fil_u, "%s\r\n", wen_c); fprintf(fil_u, "%s\r\n", wen_c);
@ -603,7 +603,7 @@ u3_noun
u3_serf_work(u3_serf* sef_u, c3_w mil_w, u3_noun job) u3_serf_work(u3_serf* sef_u, c3_w mil_w, u3_noun job)
{ {
c3_t tac_t = ( 0 != u3_Host.tra_u.fil_u ); c3_t tac_t = ( 0 != u3_Host.tra_u.fil_u );
c3_c lab_c[2048]; c3_c lab_c[2056];
u3_noun pro; u3_noun pro;
// XX refactor tracing // XX refactor tracing
@ -615,7 +615,7 @@ u3_serf_work(u3_serf* sef_u, c3_w mil_w, u3_noun job)
{ {
c3_c* cad_c = u3m_pretty(cad); c3_c* cad_c = u3m_pretty(cad);
c3_c* wir_c = u3m_pretty_path(wir); c3_c* wir_c = u3m_pretty_path(wir);
snprintf(lab_c, 2048, "work [%s %s]", wir_c, cad_c); snprintf(lab_c, 2056, "work [%s %s]", wir_c, cad_c);
c3_free(cad_c); c3_free(cad_c);
c3_free(wir_c); c3_free(wir_c);
} }
@ -870,8 +870,8 @@ _serf_writ_live_exit(c3_w cod_w)
mkdir(nam_c, 0700); mkdir(nam_c, 0700);
} }
c3_c man_c[2048]; c3_c man_c[2054];
snprintf(man_c, 2048, "%s/%s.txt", nam_c, wen_c); snprintf(man_c, 2053, "%s/%s.txt", nam_c, wen_c);
fil_u = fopen(man_c, "w"); fil_u = fopen(man_c, "w");