From 86eb621b924b5f829a0048791946d981d11cb0ad Mon Sep 17 00:00:00 2001 From: tilghman Date: Mon, 19 Mar 2007 22:31:14 +0000 Subject: 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 --- funcs/func_strings.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'funcs/func_strings.c') 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; } -- cgit v1.2.3