From: Tobias Stoeckmann Date: Sun, 12 Jul 2015 09:52:32 +0000 (+0200) Subject: * src/remake.c (name_mtime): Reserve space for nul in readlink result X-Git-Tag: 4.3.90~176 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0fb6f2d985212f9457b93ca5d03312013b0a4afe;p=thirdparty%2Fmake.git * src/remake.c (name_mtime): Reserve space for nul in readlink result Copyright-paperwork-exempt: yes --- 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. */