diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 1996-11-18 03:51:37 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 1996-11-18 03:51:37 +0000 |
commit | a0a5ab621183f0511113fdc1e52f8a59b6a09be3 (patch) | |
tree | 489def2dac3b00b5d510d0c248b53367ce3b0364 /ace/UNIX_Addr.cpp | |
parent | ce1286e8df11451a6d016fa34e00727831dc5637 (diff) | |
download | ATCD-a0a5ab621183f0511113fdc1e52f8a59b6a09be3.tar.gz |
whoopie!!
whoopie, more new stuff, more things will break!!
Diffstat (limited to 'ace/UNIX_Addr.cpp')
-rw-r--r-- | ace/UNIX_Addr.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/ace/UNIX_Addr.cpp b/ace/UNIX_Addr.cpp index fdabb40c219..04775372d9b 100644 --- a/ace/UNIX_Addr.cpp +++ b/ace/UNIX_Addr.cpp @@ -73,14 +73,13 @@ ACE_UNIX_Addr::set (const char rendezvous_point[]) { (void) ACE_OS::memset ((void *) &this->unix_addr_, 0, sizeof this->unix_addr_); - int len = ACE_OS::strlen (rendezvous_point); - this->unix_addr_.sun_family = AF_UNIX; + size_t len = ACE_OS::strlen (rendezvous_point); if (len >= sizeof this->unix_addr_.sun_path) { - /* At this point, things are screwed up, so let's make sure we - don't crash. */ + // At this point, things are screwed up, so let's make sure we + // don't crash. (void) ACE_OS::strncpy (this->unix_addr_.sun_path, rendezvous_point, sizeof this->unix_addr_.sun_path); |