Fixes stack overflow

This commit is contained in:
Milo Yip 2014-07-25 00:59:19 +08:00
parent 86b2f51a58
commit 6f1646138a

View File

@ -238,7 +238,7 @@ protected:
}
bool WriteUint64(uint64_t u64) {
char buffer[11];
char buffer[20];
const char* end = internal::u64toa(u64, buffer);
for (const char* p = buffer; p != end; ++p)
os_->Put(*p);