summaryrefslogtreecommitdiffstats
path: root/cpukit/libnetworking/nfs/bootp_subr.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2017-06-07 07:36:59 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2017-06-07 13:02:21 +0200
commite744c36c3f4b81c1a0d30200491af9e93839ea7e (patch)
tree31cfb8685a8970f59b999f5659ab4ce1d1b5d029 /cpukit/libnetworking/nfs/bootp_subr.c
parentnetwork: Update <arpa/inet.h> (diff)
downloadrtems-e744c36c3f4b81c1a0d30200491af9e93839ea7e.tar.bz2
network: Use inet_ntoa_r()
Update #2833.
Diffstat (limited to '')
-rw-r--r--cpukit/libnetworking/nfs/bootp_subr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpukit/libnetworking/nfs/bootp_subr.c b/cpukit/libnetworking/nfs/bootp_subr.c
index 22d453faf2..484a6b5d72 100644
--- a/cpukit/libnetworking/nfs/bootp_subr.c
+++ b/cpukit/libnetworking/nfs/bootp_subr.c
@@ -1184,8 +1184,9 @@ bootpc_init(bool update_files, bool forever)
}
for (i = 0; i < rtems_bsdnet_nameserver_count; i++) {
+ char addrbuf[INET_ADDRSTRLEN];
strcpy(buf, "nameserver ");
- strcat(buf, inet_ntoa(rtems_bsdnet_nameserver[i]));
+ strcat(buf, inet_ntoa_r(rtems_bsdnet_nameserver[i], addrbuf));
strcat(buf, "\n");
if (rtems_rootfs_file_append ("/etc/resolv.conf", MKFILE_MODE, 1, bufl))
break;