diff options
author | Cory Fields <cory-nospam-@coryfields.com> | 2015-02-17 16:15:01 -0500 |
---|---|---|
committer | Cory Fields <cory-nospam-@coryfields.com> | 2015-03-19 00:14:28 -0400 |
commit | 8752b5c882fb94f223b117153bdac024f1dfb25f (patch) | |
tree | d0f8f271c69c9ff66ad9a4f37b48f4abd8024a48 /src/protocol.cpp | |
parent | 601327be8ca971895bef8f3e5cdde86ca220e8d6 (diff) |
0.10 fix for crashes on OSX 10.6
strnlen is available at build-time but not at runtime, causing a crash.
0.11 drops support for 10.6, so this is not needed in master.
Diffstat (limited to 'src/protocol.cpp')
-rw-r--r-- | src/protocol.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/protocol.cpp b/src/protocol.cpp index 72fdd753a8..f03d6e7589 100644 --- a/src/protocol.cpp +++ b/src/protocol.cpp @@ -40,7 +40,7 @@ CMessageHeader::CMessageHeader(const char* pszCommand, unsigned int nMessageSize std::string CMessageHeader::GetCommand() const { - return std::string(pchCommand, pchCommand + strnlen(pchCommand, COMMAND_SIZE)); + return std::string(pchCommand, pchCommand + strnlen_int(pchCommand, COMMAND_SIZE)); } bool CMessageHeader::IsValid() const |