Fix size passed to lstrcpynA function - sizeof(string) == 4 not 16 as
needed.
This commit is contained in:
parent
7bb1757e75
commit
4fee52683b
|
@ -932,7 +932,7 @@ char *toIPAddressString(unsigned int addr, char string[16])
|
||||||
|
|
||||||
iAddr.s_addr = addr;
|
iAddr.s_addr = addr;
|
||||||
/* extra-anal, just to make auditors happy */
|
/* extra-anal, just to make auditors happy */
|
||||||
lstrcpynA(string, inet_ntoa(iAddr), sizeof(string));
|
lstrcpynA(string, inet_ntoa(iAddr), 16);
|
||||||
}
|
}
|
||||||
return string;
|
return string;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue