[Asterisk-cvs] asterisk/res res_agi.c,1.33,1.34
kpfleming at lists.digium.com
kpfleming at lists.digium.com
Tue Apr 26 20:52:43 CDT 2005
- Previous message: [Asterisk-cvs] asterisk/apps app_voicemail.c,1.207,1.208
- Next message: [Asterisk-cvs] asterisk/apps app_cut.c, 1.8, 1.9 app_dial.c, 1.149,
1.150 app_eval.c, 1.3, 1.4 app_exec.c, 1.4,
1.5 app_groupcount.c, 1.9, 1.10 app_while.c, 1.6, 1.7
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /usr/cvsroot/asterisk/res
In directory mongoose.digium.com:/tmp/cvs-serv26521/res
Modified Files:
res_agi.c
Log Message:
don't use %i for numeric input in scanf (bug #4071)
Index: res_agi.c
===================================================================
RCS file: /usr/cvsroot/asterisk/res/res_agi.c,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -d -r1.33 -r1.34
--- res_agi.c 21 Apr 2005 06:02:44 -0000 1.33
+++ res_agi.c 27 Apr 2005 01:42:33 -0000 1.34
@@ -350,7 +350,7 @@
int to;
if (argc != 4)
return RESULT_SHOWUSAGE;
- if (sscanf(argv[3], "%i", &to) != 1)
+ if (sscanf(argv[3], "%d", &to) != 1)
return RESULT_SHOWUSAGE;
res = ast_waitfordigit_full(chan, to, agi->audio, agi->ctrl);
fdprintf(agi->fd, "200 result=%d\n", res);
@@ -583,7 +583,7 @@
if (argc != 4)
return RESULT_SHOWUSAGE;
- if (sscanf(argv[2], "%i", &num) != 1)
+ if (sscanf(argv[2], "%d", &num) != 1)
return RESULT_SHOWUSAGE;
res = ast_say_digit_str_full(chan, argv[2], argv[3], chan->language, agi->audio, agi->ctrl);
@@ -619,7 +619,7 @@
int num;
if (argc != 4)
return RESULT_SHOWUSAGE;
- if (sscanf(argv[2], "%i", &num) != 1)
+ if (sscanf(argv[2], "%d", &num) != 1)
return RESULT_SHOWUSAGE;
res = ast_say_date(chan, num, argv[3], chan->language);
if (res == 1)
@@ -637,7 +637,7 @@
int num;
if (argc != 4)
return RESULT_SHOWUSAGE;
- if (sscanf(argv[2], "%i", &num) != 1)
+ if (sscanf(argv[2], "%d", &num) != 1)
return RESULT_SHOWUSAGE;
res = ast_say_time(chan, num, argv[3], chan->language);
if (res == 1)
@@ -756,7 +756,7 @@
int pri;
if (argc != 3)
return RESULT_SHOWUSAGE;
- if (sscanf(argv[2], "%i", &pri) != 1)
+ if (sscanf(argv[2], "%d", &pri) != 1)
return RESULT_SHOWUSAGE;
chan->priority = pri - 1;
fdprintf(agi->fd, "200 result=0\n");
@@ -785,7 +785,7 @@
if (argc < 6)
return RESULT_SHOWUSAGE;
- if (sscanf(argv[5], "%i", &ms) != 1)
+ if (sscanf(argv[5], "%d", &ms) != 1)
return RESULT_SHOWUSAGE;
if (argc > 6)
- Previous message: [Asterisk-cvs] asterisk/apps app_voicemail.c,1.207,1.208
- Next message: [Asterisk-cvs] asterisk/apps app_cut.c, 1.8, 1.9 app_dial.c, 1.149,
1.150 app_eval.c, 1.3, 1.4 app_exec.c, 1.4,
1.5 app_groupcount.c, 1.9, 1.10 app_while.c, 1.6, 1.7
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the svn-commits
mailing list