core: fix 64-bit build error in QCDM packet decapsulation
This commit is contained in:
@@ -71,6 +71,7 @@ handle_response (MMSerialPort *port,
|
|||||||
|
|
||||||
if (!error) {
|
if (!error) {
|
||||||
gboolean more = FALSE, success;
|
gboolean more = FALSE, success;
|
||||||
|
gsize unescaped_len = 0;
|
||||||
|
|
||||||
/* FIXME: don't munge around with byte array internals */
|
/* FIXME: don't munge around with byte array internals */
|
||||||
unescaped = g_byte_array_sized_new (1024);
|
unescaped = g_byte_array_sized_new (1024);
|
||||||
@@ -78,7 +79,7 @@ handle_response (MMSerialPort *port,
|
|||||||
response->len,
|
response->len,
|
||||||
(char *) unescaped->data,
|
(char *) unescaped->data,
|
||||||
1024,
|
1024,
|
||||||
&unescaped->len,
|
&unescaped_len,
|
||||||
&used,
|
&used,
|
||||||
&more);
|
&more);
|
||||||
if (!success) {
|
if (!success) {
|
||||||
@@ -90,6 +91,9 @@ handle_response (MMSerialPort *port,
|
|||||||
* function checks for the end-of-frame marker, but whatever.
|
* function checks for the end-of-frame marker, but whatever.
|
||||||
*/
|
*/
|
||||||
return 0;
|
return 0;
|
||||||
|
} else {
|
||||||
|
/* Successfully decapsulated the DM command */
|
||||||
|
unescaped->len = (guint) unescaped_len;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user