Commit 6f164613 authored by Milo Yip's avatar Milo Yip

Fixes stack overflow

parent 86b2f51a
...@@ -238,7 +238,7 @@ protected: ...@@ -238,7 +238,7 @@ protected:
} }
bool WriteUint64(uint64_t u64) { bool WriteUint64(uint64_t u64) {
char buffer[11]; char buffer[20];
const char* end = internal::u64toa(u64, buffer); const char* end = internal::u64toa(u64, buffer);
for (const char* p = buffer; p != end; ++p) for (const char* p = buffer; p != end; ++p)
os_->Put(*p); os_->Put(*p);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment