rild: Fix a sizeof bug.
Change-Id: Ic207f8b1567849051f24342e37f905a59b43dad2
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 @@
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 @@
int *p_int = (int *) response;
- numInts = responselen / sizeof(int *);
+ numInts = responselen / sizeof(int);
p.writeInt32 (numInts);
/* each int*/