1
0
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-17 10:52:46 +00:00

Fix/remove some incorrect uses of the arrsize macro

This commit is contained in:
2015-01-03 17:08:54 -08:00
parent e7a076b247
commit 5feefe8ea4
3 changed files with 6 additions and 15 deletions

View File

@ -102,7 +102,9 @@ static void LookupProcess (Lookup * lookup, unsigned error) {
in_addr const * const * const inAddr = (in_addr **) host.h_addr_list;
// allocate a buffer large enough to hold all the addresses
size_t count = arrsize(inAddr);
size_t count = 0;
while (inAddr[count])
++count;
plNetAddress* addrs = new plNetAddress[count];
// fill in address data