summaryrefslogtreecommitdiffstats
path: root/libril
diff options
context:
space:
mode:
authorMohamad Ayyash <mkayyash@google.com>2014-04-18 11:43:28 -0700
committerMohamad Ayyash <mkayyash@google.com>2014-04-18 11:48:19 -0700
commit1dbbfd362165f2d4dbb5a916828b788b32ce508c (patch)
tree593f9eba03168f79139e6683eacb6d6181bd72fd /libril
parentc6bb97274337f55fec2e7f33aec7acc9de117ddf (diff)
downloadandroid_hardware_ril-1dbbfd362165f2d4dbb5a916828b788b32ce508c.tar.gz
android_hardware_ril-1dbbfd362165f2d4dbb5a916828b788b32ce508c.tar.bz2
android_hardware_ril-1dbbfd362165f2d4dbb5a916828b788b32ce508c.zip
rild: Fix a sizeof bug.
Change-Id: Ic207f8b1567849051f24342e37f905a59b43dad2
Diffstat (limited to 'libril')
-rw-r--r--libril/ril.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libril/ril.cpp b/libril/ril.cpp
index 2f1f8c7..3a939ed 100644
--- a/libril/ril.cpp
+++ b/libril/ril.cpp
@@ -1655,7 +1655,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) {
@@ -1673,7 +1673,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*/