X-Git-Url: http://git.jankratochvil.net/?p=mdsms.git;a=blobdiff_plain;f=mdsms.c;h=ccd9d5c59d15f43a087bc9ffa8a26eb7f51f5f6f;hp=aad2551aa2e4966734ffae8b1a787d1441e77c13;hb=7df77087e45fc6a6e4e7ce7c3cbd41d553568663;hpb=daa9220332d7088444851d2d1142e28e3781049f diff --git a/mdsms.c b/mdsms.c index aad2551..ccd9d5c 100644 --- a/mdsms.c +++ b/mdsms.c @@ -316,7 +316,8 @@ static const struct option longopts[]={ {"file" ,0,0,'f'}, {"verbose" ,0,0,'v'}, {"help" ,0,0,'h'}, -{"version" ,0,0,'V'}}; +{"version" ,0,0,'V'}, +{NULL ,0,0,0 }}; static void processargs(int argp,char **args,const char *from); @@ -1703,7 +1704,7 @@ int inb,outb,xb; if (pdu[1]==ADDR_INT) *s++='+'; else { if (pdu[1]!=ADDR_NAT) - error(_("Unknown address type 0x%02X of %s, ignoring in PDU: %s"),_("SMSC"),pdu[1],pduline); return; + error(_("Unknown address type 0x%02X of %s, ignoring in PDU: %s"),pdu[1],_("SMSC"),pduline); return; } if (teldecode(s,pdu+2,2*(*pdu-1)-((pdu[1+(*pdu)]&0xF0)==0xF0))) error(_("Some digits unrecognized in %s \"%s\", ignoring in PDU: %s"),_("SMSC"),receive_smsc,pduline); @@ -1722,7 +1723,7 @@ int inb,outb,xb; if (*pdup==ADDR_INT) *s++='+'; else { if (*pdup!=ADDR_NAT) - error(_("Unknown address type 0x%02X of %s, ignoring in PDU: %s"),_("originating number"),*pdup,pduline); return; + error(_("Unknown address type 0x%02X of %s, ignoring in PDU: %s"),*pdup,_("originating number"),pduline); return; } pdup++; if (teldecode(s,pdup,oalen)) @@ -1752,9 +1753,9 @@ int inb,outb,xb; size_t udl1,udlb1; udlb1=pdue-pdup; - udl1=(udlb*8)/7; + udl1=(udlb1*8)/7; error(_("PDU data length (%d/7->%d/8) longer than data (%d), cut to %d/7->%d/8: %s"), - udl,udlb,pdue-pdup,pduline); + udl,udlb,pdue-pdup,udl1,udlb1,pduline); udl=udl1; udlb=udlb1; } else