Index: Source/script.cpp =================================================================== RCS file: /cvsroot/nsis/NSIS/Source/script.cpp,v retrieving revision 1.304 diff -u -r1.304 script.cpp --- Source/script.cpp 3 Dec 2005 09:45:17 -0000 1.304 +++ Source/script.cpp 27 Dec 2005 19:22:05 -0000 @@ -5162,7 +5162,10 @@ ent.which=EW_FGETS; ent.offsets[0]=GetUserVarIndex(line, 1); // file handle ent.offsets[1]=GetUserVarIndex(line, 2); // output string - ent.offsets[2]=add_string(line.gettoken_str(3)[0]?line.gettoken_str(3):"1023"); + if (line.gettoken_str(3)[0]) + ent.offsets[2]=add_string(line.gettoken_str(3)); + else + ent.offsets[2]=add_intstring(NSIS_MAX_STRLEN-1); if (ent.offsets[0]<0 || ent.offsets[1]<0) PRINTHELP() SCRIPT_MSG("FileRead: %s->%s (max:%s)\n",line.gettoken_str(1),line.gettoken_str(2),line.gettoken_str(3)); return add_entry(&ent);