diff options
Diffstat (limited to 'inet.c')
-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; } |