Commit 3bd23802ad65a4379e0c97d736dc6c2ab2d37f1d

Paul Eggert 2004-11-02T20:17:37

(MAXSIZE): New macro. (xreadlink): Use it instead of SSIZE_MAX. Ensure initial buffer size does not exceed MAXSIZE. Avoid cast. As suggested by Mark D. Baushke in <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>, if readlink fails with buffer size just under MAXSIZE, try again with MAXSIZE.