Re: [PATCH] Fix /proc pathname sizes on Solaris

Tom Tromey
2018-09-19T12:58:42Z

>>>>> "Rainer" == Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> writes:

Rainer> - sprintf (pi->pathname, "/proc/%05d/lwp/%d", pid, tid);
Rainer> + sprintf (pi->pathname, "/proc/%d/lwp/%d", pid, tid);

FWIW gdb has xsnprintf which will check the length. Or I suppose it
wouldn't be hard to just change this to be a std::string and not worry
about lengths.

Tom