Fix to pass FileStore::readWrite test for new FileStore

This commit is contained in:
2018-03-15 01:03:16 -05:00
parent db7eb9a397
commit 9d70927ad4
8 changed files with 63 additions and 44 deletions

View File

@@ -14,4 +14,4 @@ void oxAssert(const char *file, int line, bool pass, const char *msg);
#define ox_assert(pass, msg) oxAssert(__FILE__, __LINE__, pass, msg)
#else
#define ox_assert(pass, msg)
#endif
#endif

View File

@@ -79,7 +79,7 @@ inline T bigEndianAdapt(T i) {
template<typename T>
class LittleEndian {
class __attribute__((packed)) LittleEndian {
private:
T m_value;

View File

@@ -102,7 +102,7 @@ const BString<size> &BString<size>::operator+=(const char *str) {
}
ox_memcpy(m_buff + currentLen, str, strLen);
// make sure last element is a null terminator
m_buff[cap() - 1] = 0;
m_buff[currentLen + strLen] = 0;
return *this;
}