summaryrefslogtreecommitdiff
path: root/Build/source/texk/mendexk/fwrite.c
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2010-04-19 12:29:40 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2010-04-19 12:29:40 +0000
commit2438d33d26e1efd298278d484a4309cd5281c7ce (patch)
tree2c0fd6724e26b7a1e0aa65b2dd5e97217ecdbec7 /Build/source/texk/mendexk/fwrite.c
parent08fe73b8b6eb9d22a5a6551e9126cbbb93eea300 (diff)
texk/mendexk: update from Akira
git-svn-id: svn://tug.org/texlive/trunk@17921 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/mendexk/fwrite.c')
-rw-r--r--Build/source/texk/mendexk/fwrite.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Build/source/texk/mendexk/fwrite.c b/Build/source/texk/mendexk/fwrite.c
index aac5e7528e8..2f2b35283e2 100644
--- a/Build/source/texk/mendexk/fwrite.c
+++ b/Build/source/texk/mendexk/fwrite.c
@@ -4,6 +4,7 @@
#include <stdarg.h>
#include <kpathsea/config.h>
+#include <kpathsea/tex-file.h>
#include <ptexenc/ptexenc.h>
#include "mendex.h"
@@ -76,7 +77,7 @@ void indwrite(char *filename, struct index *ind, int pagenum)
unsigned char datama[256],lbuff[4096];
FILE *fp;
- if (filename[0]!='\0') fp=fopen(filename,"w");
+ if (filename[0]!='\0' && kpse_out_name_ok(filename)) fp=fopen(filename,"w");
else fp=stdout;
convert(atama,datama);