gnokii-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SCM] libgnokii and core programs branch, master, updated. rel_0_6_29-41


From: Daniele Forsi
Subject: [SCM] libgnokii and core programs branch, master, updated. rel_0_6_29-415-gb1fb4e1
Date: Wed, 05 Dec 2012 17:30:50 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "libgnokii and core programs".

The branch, master has been updated
       via  b1fb4e13c4f0d46d7866d295e95f36a24224ef3b (commit)
      from  efa9922754ba218424d27454cab080b6e5b2a0be (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/gnokii.git/commit/?id=b1fb4e13c4f0d46d7866d295e95f36a24224ef3b


commit b1fb4e13c4f0d46d7866d295e95f36a24224ef3b
Author: Daniele Forsi <address@hidden>
Date:   Wed Dec 5 18:19:51 2012 +0100

    Check maximum number of seconds for --validity
    
    Maximum TP-VP in relative format is 255 - 192 = 63 weeks according to
    TS 23.040 Section 9.2.3.12.1.

diff --git a/gnokii/gnokii-sms.c b/gnokii/gnokii-sms.c
index 2d137b0..d7efa73 100644
--- a/gnokii/gnokii-sms.c
+++ b/gnokii/gnokii-sms.c
@@ -235,7 +235,8 @@ gn_error sendsms(int argc, char *argv[], gn_data *data, 
struct gn_statemachine *
 
                case 'v':
                        sms.validity = gnokii_atoi(optarg);
-                       if (errno || sms.validity < 0)
+                       /* Maximum TP-VP in relative format is 63 weeks (TS 
23.040 Section 9.2.3.12.1) */
+                       if (errno || sms.validity < 0 || sms.validity > 60 * 60 
* 24 * 7 * 63)
                                return sendsms_usage(stderr, -1);
                        break;
 

-----------------------------------------------------------------------

Summary of changes:
 gnokii/gnokii-sms.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
libgnokii and core programs



reply via email to

[Prev in Thread] Current Thread [Next in Thread]