From 0fb6f2d985212f9457b93ca5d03312013b0a4afe Mon Sep 17 00:00:00 2001 From: Tobias Stoeckmann Date: Sun, 12 Jul 2015 11:52:32 +0200 Subject: [PATCH] * src/remake.c (name_mtime): Reserve space for nul in readlink result Copyright-paperwork-exempt: yes --- src/remake.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. */