commit | 4a66f39cb53fde78c4518615382be83a9e2bff0b | [log] [tgz] |
---|---|---|
author | H. Peter Anvin <hpa@linux.intel.com> | Tue Apr 15 09:27:38 2014 -0700 |
committer | H. Peter Anvin <hpa@linux.intel.com> | Tue Apr 15 09:27:38 2014 -0700 |
tree | f68542d62d5fc87e9ddb6af6983f251ef0213ed5 | |
parent | a51893a6d52a8cdf247cb1bd10dd8987d4d7eb49 [diff] |
readlink: Better buffer handling - Allow PATH_MAX bytes, not just a hard-coded 128 bytes - Just allocate the buffer on the stack, no need for malloc() - Use puts() rather than printf() Reported-by: Rafi Rubin <rafi@seas.upenn.edu> Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>