mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-15 08:16:08 +00:00
chore(Deps/Acelite): Update to 6.5.10 (#3450)
This commit is contained in:
11
deps/acelite/ace/UNIX_Addr.cpp
vendored
11
deps/acelite/ace/UNIX_Addr.cpp
vendored
@@ -4,6 +4,10 @@
|
||||
|
||||
#if !defined (ACE_LACKS_UNIX_DOMAIN_SOCKETS)
|
||||
|
||||
#if defined (ACE_HAS_ALLOC_HOOKS)
|
||||
# include "ace/Malloc_Base.h"
|
||||
#endif /* ACE_HAS_ALLOC_HOOKS */
|
||||
|
||||
#if !defined (__ACE_INLINE__)
|
||||
#include "ace/UNIX_Addr.inl"
|
||||
#endif /* __ACE_INLINE__ */
|
||||
@@ -37,6 +41,10 @@ ACE_UNIX_Addr::string_to_addr (const char addr[])
|
||||
{
|
||||
ACE_OS::strsncpy (this->unix_addr_.sun_path, addr,
|
||||
sizeof this->unix_addr_.sun_path);
|
||||
|
||||
this->set_size (sizeof this->unix_addr_ -
|
||||
sizeof (this->unix_addr_.sun_path) +
|
||||
ACE_OS::strlen (this->unix_addr_.sun_path));
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -67,7 +75,8 @@ ACE_UNIX_Addr::dump (void) const
|
||||
// Do nothing constructor.
|
||||
|
||||
ACE_UNIX_Addr::ACE_UNIX_Addr (void)
|
||||
: ACE_Addr (AF_UNIX, sizeof this->unix_addr_)
|
||||
: ACE_Addr (AF_UNIX,
|
||||
sizeof this->unix_addr_ - sizeof (this->unix_addr_.sun_path))
|
||||
{
|
||||
(void) ACE_OS::memset ((void *) &this->unix_addr_,
|
||||
0,
|
||||
|
||||
Reference in New Issue
Block a user