dect
/
asterisk
Archived
13
0
Fork 0

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
This commit is contained in:
tilghman 2007-03-19 22:31:14 +00:00
parent 3671bf298b
commit 86eb621b92
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}