diff options
author | Takuji Tanaka <KXD02663@nifty.ne.jp> | 2017-04-05 13:27:44 +0000 |
---|---|---|
committer | Takuji Tanaka <KXD02663@nifty.ne.jp> | 2017-04-05 13:27:44 +0000 |
commit | 2c218f95a536983eef84a1ad7da85c30498b934f (patch) | |
tree | a2d1a2b137cee2b955813f6d7db3a2bc3ab19868 /Build/source/texk/mendexk | |
parent | 0c220aa523a9baaa8e59714dd361b50a611a8706 (diff) |
texk/{mendexk,upmendex}: Avoid access violation
git-svn-id: svn://tug.org/texlive/trunk@43700 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/mendexk')
-rw-r--r-- | Build/source/texk/mendexk/ChangeLog | 5 | ||||
-rw-r--r-- | Build/source/texk/mendexk/main.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/Build/source/texk/mendexk/ChangeLog b/Build/source/texk/mendexk/ChangeLog index 40577d504f0..f66cdc4e375 100644 --- a/Build/source/texk/mendexk/ChangeLog +++ b/Build/source/texk/mendexk/ChangeLog @@ -1,3 +1,8 @@ +2017-04-05 TANAKA Takuji <ttk@t-lab.opal.ne.jp> + + * main.c: Avoid access violation. + Thanks to I. Wada san. + 2016-12-21 TANAKA Takuji <ttk@t-lab.opal.ne.jp> * mendex.1, mendex.doc, mendex.1.ja: Sync with upstream. diff --git a/Build/source/texk/mendexk/main.c b/Build/source/texk/mendexk/main.c index 78ea3282fb0..35c75b01528 100644 --- a/Build/source/texk/mendexk/main.c +++ b/Build/source/texk/mendexk/main.c @@ -254,7 +254,7 @@ int main(int argc, char **argv) } if (!indfile &&(idxcount-fsti>0)) { - indfile=xmalloc(strlen(idxfile[0]+6)); + indfile=xmalloc(strlen(idxfile[0])+6); for (i=strlen(idxfile[0]);i>=0;i--) { if (idxfile[0][i]=='.') { strncpy(indfile,idxfile[0],i); @@ -266,7 +266,7 @@ int main(int argc, char **argv) } if (!logfile && (idxcount-fsti > 0)) { - logfile=xmalloc(strlen(idxfile[0]+6)); + logfile=xmalloc(strlen(idxfile[0])+6); for (i=strlen(idxfile[0]);i>=0;i--) { if (idxfile[0][i]=='.') { strncpy(logfile,idxfile[0],i); |