mirror of
https://github.com/mirror/make.git
synced 2025-03-03 14:20:54 +08: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
@ -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 New Issue
Block a user