https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68737
--- Comment #17 from dave.anglin at bell dot net --- On 2018-09-04 11:20 AM, redi at gcc dot gnu.org wrote: > I don't think __cs_size + 1 will be enough in general. There's no reason to > think it's only 1 byte too small. > > Maybe we need a kluge like: Maybe. I read in manpage that old glibc versions also return -1 when the output is truncated. I was about to try the attached change. Was hoping that a slightly larger __cs_size would work.