Fix a memory corruption when writting Sensor into a parcel

Change-Id: I03f703ae2224f43924031bfea4c68aa979bb9f05
This commit is contained in:
Mathias Agopian 2010-07-22 18:57:41 -07:00
parent e3c8234765
commit d03d9ced3f

View File

@ -89,7 +89,7 @@ size_t Sensor::getFlattenedSize() const
return sizeof(int32_t) + ((mName.length() + 3) & ~3) +
sizeof(int32_t) + ((mVendor.length() + 3) & ~3) +
sizeof(int32_t) * 2 +
sizeof(float) * 3;
sizeof(float) * 4;
}
size_t Sensor::getFdCount() const