mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 02:37:10 +00:00 
			
		
		
		
	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: https://origsvn.digium.com/svn/asterisk/trunk@59050 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
		| @@ -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; | ||||
| 				} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user