From f9b9956dd2724ac622530223651da287858a674d Mon Sep 17 00:00:00 2001 From: kichik Date: Sat, 1 May 2004 12:41:49 +0000 Subject: [PATCH] - fixed bug report #945832 - fixed a crash under some POSIX platforms in the code that gets the fully qualified path to the output file git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3533 212acab6-be3b-0410-9dea-997c60f758d6 --- Source/build.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Source/build.cpp b/Source/build.cpp index 6e3811c5..a24a5d2b 100644 --- a/Source/build.cpp +++ b/Source/build.cpp @@ -18,6 +18,7 @@ # include # include # include +# include #endif int MMapFile::m_iAllocationGranularity = 0; @@ -1032,7 +1033,7 @@ int CEXEBuild::add_label(const char *name) } } - section s={{0}}; + section s={0}; s.name_ptr = offs; s.code = ce; cur_labels->add(&s,sizeof(s)); @@ -2402,7 +2403,7 @@ int CEXEBuild::write_output(void) #endif notify(MAKENSIS_NOTIFY_OUTPUT, buffer); INFO_MSG("\nOutput: \"%s\"\n", buffer); -#if !defined(_WIN32) && defined(PATH_MAX) +#if !defined(_WIN32) && !defined(PATH_MAX) if (buffer != build_output_filename) free(buffer); #endif