diff options
author | Gianluca Varenni <test@safs64.(none)> | 2010-10-15 00:22:02 -0700 |
---|---|---|
committer | Gianluca Varenni <test@safs64.(none)> | 2010-10-15 00:22:02 -0700 |
commit | 8ca4b7616b160d98b5b83a6183351e8d08eb1d6c (patch) | |
tree | a972297053278a226b8a655538456f8432d6b527 | |
parent | eec96d7d3f33058452e6e3d5944be8025c726b78 (diff) | |
download | libpcap-8ca4b7616b160d98b5b83a6183351e8d08eb1d6c.tar.gz |
Fixes to make WinPcap oompile under MINGW32 and MINGW32.
-rw-r--r-- | inet.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -878,8 +878,10 @@ pcap_lookupdev(errbuf) */ while(NAdapts--) { - strcpy((char*)tUstr, tAstr); - (char*)tUstr += strlen(tAstr) + 1;; + char* tmp = (char*)tUstr; + strcpy(tmp, tAstr); + tmp += strlen(tAstr) + 1; + tUstr = (WCHAR*)tmp; tAstr += strlen(tAstr) + 1; } |