From: Jim Meyering Date: Mon, 3 Sep 2001 18:24:37 +0000 (+0000) Subject: update comment re power of 2 X-Git-Tag: TEXTUTILS-2_0_15~163 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8df5a2474cfbad3c57b5c1ca60ec339f7b7898c4;p=thirdparty%2Fcoreutils.git update comment re power of 2 --- diff --git a/lib/xreadlink.c b/lib/xreadlink.c index 333551feda..881b794f18 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)