mirror of
https://github.com/yarrick/iodine.git
synced 2024-11-23 13:36:06 +03:00
#45: use static buffer
This commit is contained in:
parent
a3cea72400
commit
9354697975
@ -927,7 +927,9 @@ get_resolvconf_addr()
|
|||||||
|
|
||||||
ret = GetNetworkParams(fixed_info, &buflen);
|
ret = GetNetworkParams(fixed_info, &buflen);
|
||||||
if (ret == NO_ERROR) {
|
if (ret == NO_ERROR) {
|
||||||
rv = fixed_info->DnsServerList.IpAddress.String;
|
strncpy(addr, fixed_info->DnsServerList.IpAddress.String, sizeof(addr));
|
||||||
|
addr[15] = 0;
|
||||||
|
rv = addr;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
return rv;
|
return rv;
|
||||||
|
Loading…
Reference in New Issue
Block a user