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
|
||||
mm_dbg ("Parsing PDU...");
|
||||
|
||||
#define PDU_SIZE_CHECK(required_size, check_descr_str) \
|
||||
if (pdu_len < required_size) { \
|
||||
g_set_error (error, \
|
||||
MM_CORE_ERROR, \
|
||||
MM_CORE_ERROR_FAILED, \
|
||||
"PDU too short, %s: %zd < %u", \
|
||||
check_descr_str, \
|
||||
pdu_len, \
|
||||
required_size); \
|
||||
mm_sms_part_free (sms_part); \
|
||||
return NULL; \
|
||||
#define PDU_SIZE_CHECK(required_size, check_descr_str) \
|
||||
if (pdu_len < required_size) { \
|
||||
g_set_error (error, \
|
||||
MM_CORE_ERROR, \
|
||||
MM_CORE_ERROR_FAILED, \
|
||||
"PDU too short, %s: %" G_GSIZE_FORMAT " < %u", \
|
||||
check_descr_str, \
|
||||
pdu_len, \
|
||||
required_size); \
|
||||
mm_sms_part_free (sms_part); \
|
||||
return NULL; \
|
||||
}
|
||||
|
||||
offset = 0;
|
||||
|
Reference in New Issue
Block a user