[asterisk-commits] tilghman: branch 1.4 r59049 -
/branches/1.4/funcs/func_strings.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Mon Mar 19 15:29:56 MST 2007
Author: tilghman
Date: Mon Mar 19 17:29:56 2007
New Revision: 59049
URL: http://svn.digium.com/view/asterisk?view=rev&rev=59049
Log:
Oops, this should have been a %d all along
Modified:
branches/1.4/funcs/func_strings.c
Modified: branches/1.4/funcs/func_strings.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/funcs/func_strings.c?view=diff&rev=59049&r1=59048&r2=59049
==============================================================================
--- branches/1.4/funcs/func_strings.c (original)
+++ branches/1.4/funcs/func_strings.c Mon Mar 19 17:29:56 2007
@@ -283,7 +283,7 @@
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;
}
More information about the asterisk-commits
mailing list