Skip to content

Commit 67f72d0

Browse files
[[ Bug 13658 ]] Only reconsider the meaning of EOF for binary processes
1 parent a74c37a commit 67f72d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

engine/src/cmdsf.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3282,9 +3282,9 @@ Exec_stat MCRead::exec(MCExecPoint &ep)
32823282
else if (arg == OA_PROCESS)
32833283
{
32843284
t_is_text = MCprocesses[index] . textmode != 0;
3285-
// SN-2014-10-14: [[ Bug 13658 ]] Ensure that we read all we can from the process, not
3285+
// SN-2014-10-14: [[ Bug 13658 ]] Ensure that we read all we can from a binary process, not
32863286
// until 0x4 (which might be read before the end, when outputting binary data)
3287-
if (*sptr == 0x4)
3287+
if (!t_is_text && *sptr == 0x4)
32883288
ep.setsvalue("");
32893289
}
32903290
else

0 commit comments

Comments
 (0)