Bugfix in Logger.h
This commit is contained in:
parent
ce12c846f6
commit
bc7e414e53
|
@ -33,7 +33,7 @@ public:
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
memcpy(&data_[currentSize_], &time, sizeof(time));
|
memcpy(&data_[currentSize_], &time, sizeof(time));
|
||||||
currentSize_ += time;
|
currentSize_ += sizeof(time);
|
||||||
|
|
||||||
const auto spaceLeft = totalSize_ - currentSize_;
|
const auto spaceLeft = totalSize_ - currentSize_;
|
||||||
auto charsWritten = snprintf(&data_[currentSize_], spaceLeft, formatStr,
|
auto charsWritten = snprintf(&data_[currentSize_], spaceLeft, formatStr,
|
||||||
|
|
Loading…
Reference in New Issue