diff options
author | Jim Meyering <jim@meyering.net> | 2001-09-03 18:24:37 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2001-09-03 18:24:37 +0000 |
commit | 8df5a2474cfbad3c57b5c1ca60ec339f7b7898c4 (patch) | |
tree | 1891f625ecea20740d7542f27ccb119ab4981e5a | |
parent | cb2a0f5e50b56213986ec1f8116773465b0b8fdb (diff) | |
download | coreutils-8df5a2474cfbad3c57b5c1ca60ec339f7b7898c4.tar.xz |
update comment re power of 2
-rw-r--r-- | lib/xreadlink.c | 4 |
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) |