From 0da4933597401742827d31c66836082c1ee70875 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sat, 19 Mar 2011 19:42:34 -0700 Subject: [PATCH] * process.c (Fnetwork_interface_info): Fix pointer signedness. --- src/ChangeLog | 1 + src/process.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 41cf56e47f0..12a70ce9575 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -5,6 +5,7 @@ (read_process_output_error_handler, exec_sentinel_error_handler): Rename or move locals. (Fmake_network_process): Define label "retry_connect" only if needed. + (Fnetwork_interface_info): Fix pointer signedness. 2011-03-19 Paul Eggert diff --git a/src/process.c b/src/process.c index fb6dc95bb31..3cdf045f4f4 100644 --- a/src/process.c +++ b/src/process.c @@ -3950,7 +3950,7 @@ FLAGS is the current flags of the interface. */) CHECK_STRING (ifname); memset (rq.ifr_name, 0, sizeof rq.ifr_name); - strncpy (rq.ifr_name, SDATA (ifname), sizeof (rq.ifr_name)); + strncpy (rq.ifr_name, SSDATA (ifname), sizeof (rq.ifr_name)); s = socket (AF_INET, SOCK_STREAM, 0); if (s < 0) -- 2.39.2