mirror of
git://git.sv.gnu.org/coreutils
synced 2026-05-29 12:05:17 -04:00
beb34bac0ac42c6f47e5be4fe2839e9ec26f3ce2
Use ssize_t, not int, to store result of readlink. Check for ssize_t overflow as well as size_t overflow, as POSIX says the result of readlink is implementation-defined when ssize_t overflows. Remove unnecessary cast to char*. Use free+malloc instead of realloc, as the storage doesn't need to be preserved and it's clearer and can be more efficient that way. (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
Description
No description provided
Languages
C
56.9%
Shell
27.3%
Perl
11.5%
Makefile
2.2%
M4
0.9%
Other
1.2%