gtkradiant/tools/quake3
Ben Noordhuis f961a547ff q3map2: bump MAX_OS_PATH to 4096
Fixes a "buffer overflow detected" abort when compiled with _FORTIFY_SOURCE=1.

The realpath(3) function in glibc checks if the destination buffer is large
enough to hold up to PATH_MAX characters and aborts if that is not the case.
PATH_MAX doesn't have to be defined so assume that it's equal to 4096.

We should really be using pathconf(_PC_PATH_MAX) instead of a hard-coded value
but that means we can no longer use static buffers to hold paths.
2012-03-18 02:17:09 +01:00
..
common q3map2: bump MAX_OS_PATH to 4096 2012-03-18 02:17:09 +01:00
q3data uncrustify! now the code is only ugly on the *inside* 2012-03-17 15:01:54 -05:00
q3map2 q3map2: harden UNIX path sniffer against buffer overflows 2012-03-18 02:17:09 +01:00