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
This commit is contained in:
parent
f359cf7b51
commit
8dfe73762e
1 changed files with 5 additions and 5 deletions
|
@ -966,28 +966,28 @@ static void xhtml_do_file(xhtmlfile * file)
|
||||||
static void xhtml_do_top_file(xhtmlfile * file, paragraph * sourceform)
|
static void xhtml_do_top_file(xhtmlfile * file, paragraph * sourceform)
|
||||||
{
|
{
|
||||||
paragraph *p;
|
paragraph *p;
|
||||||
char fname[_MAX_PATH];
|
char fname[4096];
|
||||||
int done = FALSE;
|
int done = FALSE;
|
||||||
|
|
||||||
FILE *fp = fopen(file->filename, "w");
|
FILE *fp = fopen(file->filename, "w");
|
||||||
if (fp == NULL)
|
if (fp == NULL)
|
||||||
fatal(err_cantopenw, file->filename);
|
fatal(err_cantopenw, file->filename);
|
||||||
|
|
||||||
ustrtoa(conf.chm_toc_file, fname, _MAX_PATH);
|
ustrtoa(conf.chm_toc_file, fname, 4096);
|
||||||
if(*fname)
|
if(*fname)
|
||||||
{
|
{
|
||||||
chm_toc = fopen(fname, "w");
|
chm_toc = fopen(fname, "w");
|
||||||
if (chm_toc == NULL)
|
if (chm_toc == NULL)
|
||||||
fatal(err_cantopenw, fname);
|
fatal(err_cantopenw, fname);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
chm_toc = NULL;
|
chm_toc = NULL;
|
||||||
|
|
||||||
ustrtoa(conf.chm_ind_file, fname, _MAX_PATH);
|
ustrtoa(conf.chm_ind_file, fname, 4096);
|
||||||
if(*fname){
|
if(*fname){
|
||||||
chm_ind = fopen(fname, "w");
|
chm_ind = fopen(fname, "w");
|
||||||
if (chm_ind == NULL)
|
if (chm_ind == NULL)
|
||||||
fatal(err_cantopenw, fname);
|
fatal(err_cantopenw, fname);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
chm_ind = NULL;
|
chm_ind = NULL;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue