https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100734
--- Comment #10 from dave.anglin at bell dot net --- On 2021-05-25 3:04 p.m., msebor at gcc dot gnu.org wrote: > In parallel, I wonder if there's something funny about > snprintf on HP-UX. Does the snprintf call added in r12-930 do the right thing > (i.e., append a nonempty string to spec)? No. When passed a size of 0, snprintf on hpux11.11 returns 0. This issue is noted in Linux man page for snprintf. Attached a possible fix.