mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Address reported issues
Addressed: * 'Expression: vector subscript out of range' (we only ever ensured capacity upon construction). * Compiler error as AssertMsg1 is unimplemented, used Assert instead.
This commit is contained in:
parent
8068bcf176
commit
61dbda67f7
@ -50,7 +50,7 @@ public:
|
||||
m_bValidated = false;
|
||||
m_bAuthorized = false;
|
||||
m_bInputOnly = false;
|
||||
m_RecvBuffer.reserve(sizeof(int)); // Reserve enough for length-prefix.
|
||||
m_RecvBuffer.resize(sizeof(int)); // Reserve enough for length-prefix.
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -127,7 +127,7 @@ string sha256(const string& input)
|
||||
char buf[2*SHA256::DIGEST_SIZE+1];
|
||||
memset(buf, '\0', 2*SHA256::DIGEST_SIZE+1);
|
||||
|
||||
for (int i = 0; i < SHA256::DIGEST_SIZE; i++) {
|
||||
for (unsigned int i = 0; i < SHA256::DIGEST_SIZE; i++) {
|
||||
sprintf(buf + i * 2, "%02x", digest[i]);
|
||||
}
|
||||
|
||||
|
@ -959,7 +959,7 @@ CConCommandHash::CCommandHashHandle_t CConCommandHash::Find(const ConCommandBase
|
||||
#ifdef DBGFLAG_ASSERT // double check against search by name
|
||||
CCommandHashHandle_t dbghand = Find(cmd->GetName());
|
||||
|
||||
AssertMsg1(InvalidHandle() == dbghand,
|
||||
Assert(InvalidHandle() == dbghand,
|
||||
"ConCommand %s couldn't be found by pointer, but was found by name!", cmd->GetName());
|
||||
#endif
|
||||
return InvalidHandle();
|
||||
|
Loading…
x
Reference in New Issue
Block a user