From b830d0e9852404fb4dc5bf32267d12053476ce73 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 2 Mar 2020 21:27:21 +0000 Subject: off by one git-svn-id: svn://tug.org/texlive/trunk@54013 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/xdvik/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Build/source/texk/xdvik') 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); -- cgit v1.2.3