Creating tag for the release of asterisk-1.4.2

git-svn-id: https://origsvn.digium.com/svn/asterisk/tags/1.4.2@59053 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Jason Parker
2007-03-19 22:39:37 +00:00

View File

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