From: Jim Meyering Date: Mon, 3 Sep 2001 18:24:37 +0000 (+0000) Subject: update comment re power of 2 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8d7314ae9fde9984d9cebe27a96806e02f77be64;p=pspp 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)