summary refs log tree commit diff
path: root/rega.c
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2021-09-25 13:25:57 -0700
committerQuentin Carbonneaux <quentin@c9x.me>2021-10-11 10:13:27 +0200
commitae23a3223f8f91aad898b73242ee9ec29ffabb11 (patch)
tree1a9eae0545a4c360cc0403d02331a12edf3e98b1 /rega.c
parentbb16529b34a844c6e15f8837950585761122106e (diff)
downloadroux-ae23a3223f8f91aad898b73242ee9ec29ffabb11.tar.gz
avoid some one last gcc truncation warning
Diffstat (limited to 'rega.c')
-rw-r--r--rega.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rega.c b/rega.c
index bd26f1c..0359d2b 100644
--- 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;