aboutsummaryrefslogtreecommitdiff
path: root/inet.c
diff options
context:
space:
mode:
Diffstat (limited to 'inet.c')
-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;
}