Bugfix in Logger.h

This commit is contained in:
Martin Bauer 2023-07-06 07:26:39 +00:00
parent ce12c846f6
commit bc7e414e53
1 changed files with 1 additions and 1 deletions

View File

@ -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,