commit ae23a3223f8f91aad898b73242ee9ec29ffabb11
parent bb16529b34a844c6e15f8837950585761122106e
Author: Michael Forney <mforney@mforney.org>
Date: Sat, 25 Sep 2021 13:25:57 -0700
avoid some one last gcc truncation warning
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/rega.c b/rega.c
@@ -667,7 +667,7 @@ rega(Fn *fn)
b1->link = blist;
blist = b1;
fn->nblk++;
- sprintf(b1->name, "%s_%s", b->name, s->name);
+ (void)!snprintf(b1->name, sizeof(b1->name), "%s_%s", b->name, s->name);
b1->nins = &insb[NIns] - curi;
stmov += b1->nins;
stblk += 1;