summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2001-09-04 20:22:47 +0000
committerJim Meyering <jim@meyering.net>2001-09-04 20:22:47 +0000
commit121f936e4f72c55bf54f2877ee3fcf01e78a058d (patch)
tree118f5976d99026697f3047f3936fb942fca890e2 /lib
parenta5261150bb2833f189cdd29de4ab510b8f567aa0 (diff)
downloadcoreutils-121f936e4f72c55bf54f2877ee3fcf01e78a058d.tar.xz
.
Diffstat (limited to 'lib')
-rw-r--r--lib/ChangeLog13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/ChangeLog b/lib/ChangeLog
index e511bf8b4..8f831c474 100644
--- a/lib/ChangeLog
+++ b/lib/ChangeLog
@@ -1,3 +1,16 @@
+2001-09-04 Paul Eggert <eggert@twinsun.com>
+
+ * xreadlink.c (xreadlink): Omit size_t* arg. All uses changed.
+ 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.
+ * xreadlink.h (xreadlink): Update prototype.
+
2001-09-03 Paul Eggert <eggert@twinsun.com>
* exclude.c (fnmatch_no_wildcards): Fix confusion between