aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2007-03-19 22:29:56 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2007-03-19 22:29:56 +0000
commit90cf6e4287cdbc83661610a063b3bddc77dd70c1 (patch)
tree15e21f098ae88021dd1b8b3afb6610d80fac6fbb
parent3253ea74e0539edea51e43c96fa862ae9d5a1fa7 (diff)
Oops, this should have been a %d all along
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@59049 f38db490-d61c-443f-a65b-d21fe96a405b
-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 45d50b48a..e1808604b 100644
--- a/funcs/func_strings.c
+++ b/funcs/func_strings.c
@@ -283,7 +283,7 @@ static int acf_sprintf(struct ast_channel *chan, char *cmd, char *data, char *bu
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;
}