diff --git a/Docs/src/bin/halibut/bk_xhtml.c b/Docs/src/bin/halibut/bk_xhtml.c
index 1200d07c..918e368b 100644
--- a/Docs/src/bin/halibut/bk_xhtml.c
+++ b/Docs/src/bin/halibut/bk_xhtml.c
@@ -966,28 +966,28 @@ static void xhtml_do_file(xhtmlfile * file)
static void xhtml_do_top_file(xhtmlfile * file, paragraph * sourceform)
{
paragraph *p;
- char fname[_MAX_PATH];
+ char fname[4096];
int done = FALSE;
FILE *fp = fopen(file->filename, "w");
if (fp == NULL)
fatal(err_cantopenw, file->filename);
- ustrtoa(conf.chm_toc_file, fname, _MAX_PATH);
+ ustrtoa(conf.chm_toc_file, fname, 4096);
if(*fname)
{
chm_toc = fopen(fname, "w");
if (chm_toc == NULL)
- fatal(err_cantopenw, fname);
+ fatal(err_cantopenw, fname);
}
else
chm_toc = NULL;
- ustrtoa(conf.chm_ind_file, fname, _MAX_PATH);
+ ustrtoa(conf.chm_ind_file, fname, 4096);
if(*fname){
chm_ind = fopen(fname, "w");
if (chm_ind == NULL)
- fatal(err_cantopenw, fname);
+ fatal(err_cantopenw, fname);
}
else
chm_ind = NULL;