summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2001-09-03 18:24:37 +0000
committerJim Meyering <jim@meyering.net>2001-09-03 18:24:37 +0000
commit8df5a2474cfbad3c57b5c1ca60ec339f7b7898c4 (patch)
tree1891f625ecea20740d7542f27ccb119ab4981e5a /lib
parentcb2a0f5e50b56213986ec1f8116773465b0b8fdb (diff)
downloadcoreutils-8df5a2474cfbad3c57b5c1ca60ec339f7b7898c4.tar.xz
update comment re power of 2
Diffstat (limited to 'lib')
-rw-r--r--lib/xreadlink.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/xreadlink.c b/lib/xreadlink.c
index 333551fed..881b794f1 100644
--- a/lib/xreadlink.c
+++ b/lib/xreadlink.c
@@ -46,7 +46,9 @@
char *
xreadlink (char const *filename, size_t *link_length_arg)
{
- size_t buf_size = 128; /* must be a power of 2 */
+ /* The initial buffer size for the link value. A power of 2
+ detects arithmetic overflow earlier, but is not required. */
+ size_t buf_size = 128;
char *buffer = NULL;
while (1)