diff options
author | Mohamad Ayyash <mkayyash@google.com> | 2014-04-18 11:43:28 -0700 |
---|---|---|
committer | Mohamad Ayyash <mkayyash@google.com> | 2014-04-18 11:43:28 -0700 |
commit | 74f7e667381fae533f70843ea952db04bd2adc36 (patch) | |
tree | 9dfc881b282514aa942b29dfac8ff0d97bec0fea /libril/ril.cpp | |
parent | ed7d487f05f93dcf880cfcdfa05a6b83d2edd207 (diff) | |
download | android_hardware_ril-74f7e667381fae533f70843ea952db04bd2adc36.tar.gz android_hardware_ril-74f7e667381fae533f70843ea952db04bd2adc36.tar.bz2 android_hardware_ril-74f7e667381fae533f70843ea952db04bd2adc36.zip |
rild: Fix a sizeof bug.
Change-Id: Ic207f8b1567849051f24342e37f905a59b43dad2
Diffstat (limited to 'libril/ril.cpp')
-rw-r--r-- | libril/ril.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libril/ril.cpp b/libril/ril.cpp index 17cb7b5..ec59471 100644 --- a/libril/ril.cpp +++ b/libril/ril.cpp @@ -1734,7 +1734,7 @@ sendResponse (Parcel &p) { return sendResponseRaw(p.data(), p.dataSize()); } -/** response is an int* pointing to an array of ints*/ +/** response is an int* pointing to an array of ints */ static int responseInts(Parcel &p, void *response, size_t responselen) { @@ -1752,7 +1752,7 @@ responseInts(Parcel &p, void *response, size_t responselen) { int *p_int = (int *) response; - numInts = responselen / sizeof(int *); + numInts = responselen / sizeof(int); p.writeInt32 (numInts); /* each int*/ |