OSDN Git Service

Don't pad before calling writeInPlace().
[android-x86/frameworks-native.git] / libs / binder / Parcel.cpp
index e5a9346..c3a31fb 100644 (file)
@@ -1285,7 +1285,7 @@ status_t Parcel::write(const FlattenableHelperInterface& val)
     if (err) return err;
 
     // payload
-    void* const buf = this->writeInplace(pad_size(len));
+    void* const buf = this->writeInplace(len);
     if (buf == NULL)
         return BAD_VALUE;