projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e6995fc
)
update comment re power of 2
author
Jim Meyering
<jim@meyering.net>
Mon, 3 Sep 2001 18:24:37 +0000
(18:24 +0000)
committer
Jim Meyering
<jim@meyering.net>
Mon, 3 Sep 2001 18:24:37 +0000
(18:24 +0000)
lib/xreadlink.c
patch
|
blob
|
history
diff --git
a/lib/xreadlink.c
b/lib/xreadlink.c
index 333551fedabbedb99e71f2043a223a0b3b195de4..881b794f18e8b34255ce95c5ea4dbe8be555dec2 100644
(file)
--- 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)