summaryrefslogtreecommitdiff
path: root/Build
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2020-03-02 21:27:21 +0000
committerKarl Berry <karl@freefriends.org>2020-03-02 21:27:21 +0000
commitb830d0e9852404fb4dc5bf32267d12053476ce73 (patch)
tree1b1744e282329e850827d52d331f0d8a6cb1c01b /Build
parent35f4a6396dbd7a9fa727e130f4ae0ba2fa20cbed (diff)
off by one
git-svn-id: svn://tug.org/texlive/trunk@54013 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build')
-rw-r--r--Build/source/texk/xdvik/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Build/source/texk/xdvik/main.c b/Build/source/texk/xdvik/main.c
index 407c2af4eeb..87e92fd06c9 100644
--- a/Build/source/texk/xdvik/main.c
+++ b/Build/source/texk/xdvik/main.c
@@ -457,7 +457,7 @@ is_good_dvi_file(const char *filename, Boolean from_history)
/* REALPATH failed, use real_filename */
size_t n = strlen(real_filename);
if (n >= MAXPATHLEN) {
- n = MAXPATHLEN;
+ n = MAXPATHLEN - 1;
}
memcpy(canonical_path, real_filename, n);