URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=7137dc068c40b2f63848e043c8c60acb082e8164
Submitter: Guy Harris (guy@xxxxxxxxxxxx)
Changed: branch: master-2.0
Repository: wireshark
Commits:
7137dc0 by Guy Harris (guy@xxxxxxxxxxxx):
On Windows, put the standard output in binary mode if we're writing the capture file to it.
While we're at it, explicitly compare the restult of strcmp() against 0,
to make it clearer that it's testing for the argument *not* being equal
to "-".
Bug: 13165
Change-Id: Ic63085abb2de5f5c60d2101d19c1a269b7e0c9d7
Reviewed-on: https://code.wireshark.org/review/18924
Reviewed-by: Guy Harris <guy@xxxxxxxxxxxx>
(cherry picked from commit f4d6c7abbc32c5eee10e4f771f5e7fc1cc2639ef)
Reviewed-on: https://code.wireshark.org/review/18926
Actions performed:
from 20b4f8a RLC: always initialize LI length, even when it is malformed
adds 7137dc0 On Windows, put the standard output in binary mode if we're writing the capture file to it.
Summary of changes:
text2pcap.c | 15 +++++++++++++--
1 file changed, 13 insertions(+), 2 deletions(-)