From: Tilghman Lesher Date: Mon, 19 Mar 2007 22:29:56 +0000 (+0000) Subject: Oops, this should have been a %d all along X-Git-Tag: 1.4.2~3^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7246207bd88b57b2f3ef8f07df7ba508ac40b38c;p=thirdparty%2Fasterisk.git Oops, this should have been a %d all along git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@59049 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/funcs/func_strings.c b/funcs/func_strings.c index 45d50b48af..e1808604be 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; }