Mercurial > hg > octave-kai > gnulib-hg
changeset 3453:f584fe45f97f
update comment re power of 2
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Mon, 03 Sep 2001 18:24:37 +0000 |
parents | baf8d5fe777a |
children | 21277cc5ced5 |
files | lib/xreadlink.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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)