From 8df5a2474cfbad3c57b5c1ca60ec339f7b7898c4 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 3 Sep 2001 18:24:37 +0000 Subject: update comment re power of 2 --- lib/xreadlink.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) -- cgit v1.2.3-70-g09d2