diff options
author | Tobias Stoeckmann <tobias@stoeckmann.org> | 2015-07-12 11:52:32 +0200 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2021-03-28 14:45:16 -0400 |
commit | 0fb6f2d985212f9457b93ca5d03312013b0a4afe (patch) | |
tree | 2c331730de7139a8f159cc1e0ed3671456627220 /src/remake.c | |
parent | 97a8d9b45a2f781d5dd464c2b0605bff0642f10d (diff) | |
download | make-git-0fb6f2d985212f9457b93ca5d03312013b0a4afe.tar.gz |
* src/remake.c (name_mtime): Reserve space for nul in readlink result
Copyright-paperwork-exempt: yes
Diffstat (limited to 'src/remake.c')
-rw-r--r-- | src/remake.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/remake.c b/src/remake.c index 4d41e5d2..dc3097c2 100644 --- a/src/remake.c +++ b/src/remake.c @@ -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. */ |