diff options
author | Michael Forney <mforney@mforney.org> | 2021-09-25 13:25:57 -0700 |
---|---|---|
committer | Quentin Carbonneaux <quentin@c9x.me> | 2021-10-11 10:13:27 +0200 |
commit | ae23a3223f8f91aad898b73242ee9ec29ffabb11 (patch) | |
tree | 1a9eae0545a4c360cc0403d02331a12edf3e98b1 /rega.c | |
parent | bb16529b34a844c6e15f8837950585761122106e (diff) | |
download | roux-ae23a3223f8f91aad898b73242ee9ec29ffabb11.tar.gz |
avoid some one last gcc truncation warning
Diffstat (limited to 'rega.c')
-rw-r--r-- | rega.c | 2 |
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; |