diff options
author | Karl Berry <karl@freefriends.org> | 2020-03-01 19:07:53 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2020-03-01 19:07:53 +0000 |
commit | deedcbb2fcadc2f06b4bb1c656d9ad7f5c3bdf6e (patch) | |
tree | 8596a499b7d36159ece01812e395d3a25c5a3456 /Build/source/texk/xdvik/string-utils.c | |
parent | fc2d83ae62921a4df1b666b7964fd299929fd5f2 (diff) |
import 22.87.04 from sourceforge
git-svn-id: svn://tug.org/texlive/trunk@53986 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/xdvik/string-utils.c')
-rw-r--r-- | Build/source/texk/xdvik/string-utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Build/source/texk/xdvik/string-utils.c b/Build/source/texk/xdvik/string-utils.c index 1e9bd5e8ef7..769b2ac8ccc 100644 --- a/Build/source/texk/xdvik/string-utils.c +++ b/Build/source/texk/xdvik/string-utils.c @@ -703,7 +703,7 @@ replace_extension(const char *fname, const char *extension, size_t len = strlen(extension); if (len + (sep - fname) > buf_len) return; - strncpy(buf, fname, sep - fname); + memcpy(buf, fname, sep - fname); strcpy(buf + (sep - fname), extension); } return; |