From: Paul Eggert Date: Sun, 20 Mar 2011 02:42:34 +0000 (-0700) Subject: * process.c (Fnetwork_interface_info): Fix pointer signedness. X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~513^2~29 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=0da4933597401742827d31c66836082c1ee70875;p=emacs.git * process.c (Fnetwork_interface_info): Fix pointer signedness. --- 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)