summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGianluca Varenni <test@safs64.(none)>2010-10-15 00:22:02 -0700
committerGianluca Varenni <test@safs64.(none)>2010-10-15 00:22:02 -0700
commit8ca4b7616b160d98b5b83a6183351e8d08eb1d6c (patch)
treea972297053278a226b8a655538456f8432d6b527
parenteec96d7d3f33058452e6e3d5944be8025c726b78 (diff)
downloadlibpcap-8ca4b7616b160d98b5b83a6183351e8d08eb1d6c.tar.gz
Fixes to make WinPcap oompile under MINGW32 and MINGW32.
-rw-r--r--inet.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/inet.c b/inet.c
index 178eb81f..5bdae11f 100644
--- a/inet.c
+++ b/inet.c
@@ -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;
}