diff options
author | Richard M. Stallman <rms@gnu.org> | 1996-02-11 19:26:25 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1996-02-11 19:26:25 +0000 |
commit | b11b8d787d902c292926adc1a37b1a4d74777238 (patch) | |
tree | c94b76d9c42b3b379019c09d90602f3d68c01ae9 /src/process.c | |
parent | e42962ca02d7b3d2d913e85a7753db698db111dd (diff) | |
download | emacs-b11b8d787d902c292926adc1a37b1a4d74777238.tar.gz |
(Fopen_network_stream): Use sizeof, not strlen, for numeric_addr.
Diffstat (limited to 'src/process.c')
-rw-r--r-- | src/process.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/process.c b/src/process.c index 7fe324a6d1d..83188534796 100644 --- a/src/process.c +++ b/src/process.c @@ -1696,7 +1696,8 @@ Fourth arg SERVICE is name of the service desired, or an integer\n\ #endif host_info.h_addr = (char*)(&numeric_addr); addr_list[1] = 0; - host_info.h_length = strlen (addr_list[0]); + /* numeric_addr isn't null-terminated; it has fixed length. */ + host_info.h_length = sizeof (numeric_addr); } bzero (&address, sizeof address); |