On Sat, May 29, 2021 at 2:33 PM João Pedro Malhado <phlogis...@sapo.pt> wrote: > > "With a little help from my friends", I came up with a patch for the Netsurf > build. The size of the filepaths are now allocated dynamically using > asprintf() > type of functions and realpath(). > ... > I don't know if upstream would accept such a patch as they need to worry about > platforms like RISC OS and AmigaOS, and I don't know if this would work there. > It might be ok for Debian though. If there are no objections/corrections I > could > try upstream first.
You may be able to use Gnulib for the cross-platform support of asprintf and realpath. Gnulib will handle the implementation details for you. Gnulib also does a good job of listing problem platforms. Also see https://www.gnu.org/software/gnulib/manual/html_node/asprintf.html and https://www.gnu.org/software/gnulib/manual/html_node/realpath.html. Jeff