https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104969
--- Comment #1 from Andreas Schwab <sch...@linux-m68k.org> --- Passing a max len bigger than the available space is already an error. The whole point of snprintf is to never overflow no matter how large the output.