Merge pull request #1318 from nfedera/fix-2013-06-25-02

libfreerdp-utils/pcap: open pcap in binary mode
This commit is contained in:
Martin Fleisz 2013-06-25 08:30:54 -07:00
commit bff4cbdf6f

View File

@ -158,7 +158,7 @@ rdpPcap* pcap_open(char* name, BOOL write)
{
rdpPcap* pcap;
FILE* pcap_fp = fopen(name, write ? "w+" : "r");
FILE* pcap_fp = fopen(name, write ? "w+b" : "rb");
if (pcap_fp == NULL)
{