diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2013-09-10 12:28:14 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2013-09-10 12:28:14 +0000 |
commit | 78c50a94a4aa14fb22aa8b8dedcdc630ca8d1405 (patch) | |
tree | b8ffc3a50919bac432690927e63713b826b2d897 /Build/source/texk/mendexk/fwrite.c | |
parent | 7143ba9bdf3a38213d327a4c77be353764d15cc7 (diff) |
mendexk: Bug fix [ptex:00349]
git-svn-id: svn://tug.org/texlive/trunk@31621 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/mendexk/fwrite.c')
-rw-r--r-- | Build/source/texk/mendexk/fwrite.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Build/source/texk/mendexk/fwrite.c b/Build/source/texk/mendexk/fwrite.c index 8c187827c8b..85ad228790b 100644 --- a/Build/source/texk/mendexk/fwrite.c +++ b/Build/source/texk/mendexk/fwrite.c @@ -15,7 +15,7 @@ static int range_check(struct index ind, int count, char *lbuff); static void linecheck(char *lbuff, char *tmpbuff); static void crcheck(char *lbuff, FILE *fp); -#define TAIL(x) (x+strlen(x)) +#define TAIL(x) ((x)+strlen(x)) /* if we don't have vsnprintf() */ /* #define vsnprintf(buff,len,format,argptr) vsprintf(buff,format,argptr) */ @@ -385,7 +385,7 @@ static int range_check(struct index ind, int count, char *lbuff) } if (strlen(ind.p[j].enc)>0) { sprintf(tmpbuff,"%s%s%s",encap_prefix,ind.p[j].enc,encap_infix); - sprintf(tmpbuff,"%s%s%s",ind.p[j].page,encap_suffix,delim_n); + sprintf(TAIL(tmpbuff),"%s%s%s",ind.p[j].page,encap_suffix,delim_n); linecheck(lbuff,tmpbuff); } } |