aboutsummaryrefslogtreecommitdiffstats
path: root/funcs/func_strings.c
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2007-03-19 22:31:14 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2007-03-19 22:31:14 +0000
commit86eb621b924b5f829a0048791946d981d11cb0ad (patch)
treea04c82063b7946cec583c48939e33cbc1e55d8e3 /funcs/func_strings.c
parent3671bf298b86531cca36a9ed1efb394066963e40 (diff)
Merged revisions 59049 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r59049 | tilghman | 2007-03-19 17:29:56 -0500 (Mon, 19 Mar 2007) | 2 lines Oops, this should have been a %d all along ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@59050 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'funcs/func_strings.c')
-rw-r--r--funcs/func_strings.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/funcs/func_strings.c b/funcs/func_strings.c
index 3dbc078b0..f47e45db6 100644
--- a/funcs/func_strings.c
+++ b/funcs/func_strings.c
@@ -458,7 +458,7 @@ static int acf_sprintf(struct ast_channel *chan, const char *cmd, char *data, ch
formatbuf[&arg.format[i] - formatstart + 1] = '\0';
/* Convert the argument into the required type */
- if (sscanf(arg.var[argcount++], "%i", &tmpi) != 1) {
+ if (sscanf(arg.var[argcount++], "%d", &tmpi) != 1) {
ast_log(LOG_ERROR, "Argument '%s' is not an integer number for format '%s'\n", arg.var[argcount - 1], formatbuf);
goto sprintf_fail;
}