https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96832
Florian Weimer <fw at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fw at gcc dot gnu.org --- Comment #2 from Florian Weimer <fw at gcc dot gnu.org> --- I think we should update the glibc documentation and recommend using getcwd (0, 0). This does not produce a warning. Using malloc and an explicit buffer size does not make much sense.