[asterisk-commits] tilghman: trunk r59050 - in /trunk: ./ funcs/func_strings.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Mon Mar 19 15:31:14 MST 2007


Author: tilghman
Date: Mon Mar 19 17:31:14 2007
New Revision: 59050

URL: http://svn.digium.com/view/asterisk?view=rev&rev=59050
Log:
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

........

Modified:
    trunk/   (props changed)
    trunk/funcs/func_strings.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.

Modified: trunk/funcs/func_strings.c
URL: http://svn.digium.com/view/asterisk/trunk/funcs/func_strings.c?view=diff&rev=59050&r1=59049&r2=59050
==============================================================================
--- trunk/funcs/func_strings.c (original)
+++ trunk/funcs/func_strings.c Mon Mar 19 17:31:14 2007
@@ -458,7 +458,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