comparison lib/ChangeLog @ 5386:c008e99bcbab

xreadlink problems with SSIZE_MAX.
author Paul Eggert <eggert@cs.ucla.edu>
date Tue, 02 Nov 2004 20:18:26 +0000
parents 72833e3704a0
children 4966ef3f0d28
comparison
equal deleted inserted replaced
5385:3c3f7d39051d 5386:c008e99bcbab
1 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
2
3 * xreadlink.c (MAXSIZE): New macro.
4 (xreadlink): Use it instead of SSIZE_MAX. Ensure initial buffer
5 size does not exceed MAXSIZE. Avoid cast.
6 As suggested by Mark D. Baushke in
7 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
8 if readlink fails with buffer size just under MAXSIZE, try again
9 with MAXSIZE.
10
1 2004-11-02 Derek R. Price <derek@ximbiot.com> 11 2004-11-02 Derek R. Price <derek@ximbiot.com>
2 and Paul Eggert <eggert@cs.ucla.edu> 12 and Paul Eggert <eggert@cs.ucla.edu>
3 13
4 * getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now. 14 * getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
5 (get_date): Overparenthesize to avoid GCC warning. 15 (get_date): Overparenthesize to avoid GCC warning.