From 8dfe73762e13aa2107102d209ffd6c2a74554434 Mon Sep 17 00:00:00 2001 From: kichik Date: Fri, 6 May 2005 09:57:37 +0000 Subject: [PATCH] don't use _MAX_PATH, it's not defined on POSIX git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4011 212acab6-be3b-0410-9dea-997c60f758d6 --- Docs/src/bin/halibut/bk_xhtml.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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;