diff options
| author | Richard M. Stallman | 1996-02-11 19:26:25 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1996-02-11 19:26:25 +0000 |
| commit | 8777fbe2bb6a716ae9fce8702c0bf8c5fac34a9d (patch) | |
| tree | fc9284cab855347a893930f977987eb34072dc58 /src/process.c | |
| parent | 6f554752a425976cb8f236659381cc6803ace828 (diff) | |
| download | emacs-8777fbe2bb6a716ae9fce8702c0bf8c5fac34a9d.tar.gz emacs-8777fbe2bb6a716ae9fce8702c0bf8c5fac34a9d.zip | |
(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\ | |||
| 1696 | #endif | 1696 | #endif |
| 1697 | host_info.h_addr = (char*)(&numeric_addr); | 1697 | host_info.h_addr = (char*)(&numeric_addr); |
| 1698 | addr_list[1] = 0; | 1698 | addr_list[1] = 0; |
| 1699 | host_info.h_length = strlen (addr_list[0]); | 1699 | /* numeric_addr isn't null-terminated; it has fixed length. */ |
| 1700 | host_info.h_length = sizeof (numeric_addr); | ||
| 1700 | } | 1701 | } |
| 1701 | 1702 | ||
| 1702 | bzero (&address, sizeof address); | 1703 | bzero (&address, sizeof address); |