sms-part: use correct printf modifier for gsize
This is the port to git master of the following commit: commit 294a91d9f6390d532399be35ddbf6a2b8d136576 Author: Thomas Bechtold <thomasbechtold@jpberlin.de> Date: Mon Mar 25 14:28:03 2013 +0100 sms-utils: use correct printf modifier for gsize
This commit is contained in:
@@ -519,17 +519,17 @@ mm_sms_part_new_from_binary_pdu (guint index,
|
|||||||
else
|
else
|
||||||
mm_dbg ("Parsing PDU...");
|
mm_dbg ("Parsing PDU...");
|
||||||
|
|
||||||
#define PDU_SIZE_CHECK(required_size, check_descr_str) \
|
#define PDU_SIZE_CHECK(required_size, check_descr_str) \
|
||||||
if (pdu_len < required_size) { \
|
if (pdu_len < required_size) { \
|
||||||
g_set_error (error, \
|
g_set_error (error, \
|
||||||
MM_CORE_ERROR, \
|
MM_CORE_ERROR, \
|
||||||
MM_CORE_ERROR_FAILED, \
|
MM_CORE_ERROR_FAILED, \
|
||||||
"PDU too short, %s: %zd < %u", \
|
"PDU too short, %s: %" G_GSIZE_FORMAT " < %u", \
|
||||||
check_descr_str, \
|
check_descr_str, \
|
||||||
pdu_len, \
|
pdu_len, \
|
||||||
required_size); \
|
required_size); \
|
||||||
mm_sms_part_free (sms_part); \
|
mm_sms_part_free (sms_part); \
|
||||||
return NULL; \
|
return NULL; \
|
||||||
}
|
}
|
||||||
|
|
||||||
offset = 0;
|
offset = 0;
|
||||||
|
Reference in New Issue
Block a user