mirror of
https://git.savannah.gnu.org/git/make.git
synced 2024-12-25 05:29:46 +00:00
* src/remake.c (name_mtime): Reserve space for nul in readlink result
Copyright-paperwork-exempt: yes
This commit is contained in:
parent
97a8d9b45a
commit
0fb6f2d985
1 changed files with 1 additions and 1 deletions
|
@ -1563,7 +1563,7 @@ name_mtime (const char *name)
|
|||
mtime = ltime;
|
||||
|
||||
/* Set up to check the file pointed to by this link. */
|
||||
EINTRLOOP (llen, readlink (lpath, lbuf, GET_PATH_MAX));
|
||||
EINTRLOOP (llen, readlink (lpath, lbuf, GET_PATH_MAX - 1));
|
||||
if (llen < 0)
|
||||
{
|
||||
/* Eh? Just take what we have. */
|
||||
|
|
Loading…
Reference in a new issue