Macros output back to normal

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@997 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2002-09-13 15:04:08 +00:00
parent e9351ed539
commit 5be3ac92ba

View file

@ -414,7 +414,7 @@ int CEXEBuild::doCommand(int which_token, LineParser &line, FILE *fp, const char
char *p=str;
str[0]=0;
fgets(str,MAX_LINELENGTH,fp);
SCRIPT_MSG("%s\n", str);
SCRIPT_MSG("%s%s", str, str[lstrlen(str)-1]=='\n'?"":"\n");
if (feof(fp) && !str[0])
{
ERROR_MSG("!macro \"%s\": unterminated (no !macroend found in file)!\n",line.gettoken_str(1));