You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-mobilephone/gnokii/files/gnokii-0.6.27-TP-PI.patch

17 lines
711 B

diff --git a/common/gsm-sms.c b/common/gsm-sms.c
index 2163757..f93170d 100644
--- a/common/gsm-sms.c
+++ b/common/gsm-sms.c
@@ -923,8 +923,8 @@ gn_error gn_sms_pdu2raw(gn_sms_raw *rawsms, unsigned char *pdu, int pdu_len, int
/* TP-ST TP-Status */
rawsms->report = pdu[offset++];
/* TP-PI TP-Parameter-Indicator */
- dprintf("TP-Parameter-Indicator: 0x%02x\n", pdu[offset++]);
- parameter_indicator = pdu[offset];
+ dprintf("TP-Parameter-Indicator: 0x%02x\n", pdu[offset]);
+ parameter_indicator = pdu[offset++];
/* handle the "extension bit" skipping the following octects, if any (see 9.2.3.27 TP-Parameter-Indicator) */
while (pdu[offset++] & 0x80)
;