mirror of
https://github.com/yarrick/iodine.git
synced 2024-12-22 21:33:33 +02:00
#45: use static buffer
This commit is contained in:
parent
af1380f29d
commit
13a5b7c2db
1 changed files with 3 additions and 1 deletions
|
@ -927,7 +927,9 @@ get_resolvconf_addr()
|
|||
|
||||
ret = GetNetworkParams(fixed_info, &buflen);
|
||||
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
|
||||
return rv;
|
||||
|
|
Loading…
Reference in a new issue