Index: src/core/SkWriteBuffer.cpp |
diff --git a/src/core/SkWriteBuffer.cpp b/src/core/SkWriteBuffer.cpp |
index a7805b53556c19f53dcde29612442e0ceb0c24d1..450c30ed5cdeeabe3628f3d5e0154462fd4beee2 100644 |
--- a/src/core/SkWriteBuffer.cpp |
+++ b/src/core/SkWriteBuffer.cpp |
@@ -321,5 +321,5 @@ void SkWriteBuffer::writeFlattenable(const SkFlattenable* flattenable) { |
flattenable->flatten(*this); |
size_t objSize = fWriter.bytesWritten() - offset; |
// record the obj's size |
- fWriter.write32At(offset - sizeof(uint32_t), SkToU32(objSize)); |
+ fWriter.overwriteTAt(offset - sizeof(uint32_t), SkToU32(objSize)); |
} |