Fix size passed to lstrcpynA function - sizeof(string) == 4 not 16 as

needed.
This commit is contained in:
Robert Shearman 2005-06-13 10:01:20 +00:00 committed by Alexandre Julliard
parent 7bb1757e75
commit 4fee52683b
1 changed files with 1 additions and 1 deletions

View File

@ -932,7 +932,7 @@ char *toIPAddressString(unsigned int addr, char string[16])
iAddr.s_addr = addr;
/* extra-anal, just to make auditors happy */
lstrcpynA(string, inet_ntoa(iAddr), sizeof(string));
lstrcpynA(string, inet_ntoa(iAddr), 16);
}
return string;
}