Skip to content

[2.10] qbist: Allocate path dynamically instead of using a PATH_MAX-sized buffer

Simon McVittie requested to merge wip/smcv/2-10-path-max into gimp-2-10

On modern Unix systems, PATH_MAX is more of a guideline than an actual limit. In particular, Linux arbitrarily defines PATH_MAX as 4096 but can actually have paths longer than this, and on Hurd the macro isn't defined at all.

This turns out to be the only place in GIMP 2.10.x where PATH_MAX is used outside #ifdef ENABLE_RELOCATABLE_RESOURCES.

Loosely based on commit d659bb12, but without using new API.

Bug-Debian: https://bugs.debian.org/934077


Replaces !424 (closed).

Merge request reports