diff options
author | 2010-07-22 18:57:41 -0700 | |
---|---|---|
committer | 2010-07-22 18:57:41 -0700 | |
commit | d03d9ced3fe0c115bd7af5537cdb57e94e165005 (patch) | |
tree | 7f918cd2ee1698160c73c94d9229a6c4660c6e7d | |
parent | e3c8234765050023b8a588607f819e8cc41a6363 (diff) |
Fix a memory corruption when writting Sensor into a parcel
Change-Id: I03f703ae2224f43924031bfea4c68aa979bb9f05
-rw-r--r-- | libs/gui/Sensor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/gui/Sensor.cpp b/libs/gui/Sensor.cpp index 48e1cb7a90..cb85df9bb0 100644 --- a/libs/gui/Sensor.cpp +++ b/libs/gui/Sensor.cpp @@ -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 |