mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-11-03 20:38:59 +00:00 
			
		
		
		
	don't use '%i' at all, since we have no current use cases that need non base-10 parsing (bug #4110)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5533 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
		@@ -1191,7 +1191,7 @@ static int handle_context_add_extension(int fd, int argc, char *argv[])
 | 
			
		||||
    	if (!strcmp(prior, "hint")) {
 | 
			
		||||
			iprior = PRIORITY_HINT;
 | 
			
		||||
		} else {
 | 
			
		||||
			if (sscanf(prior, "%i", &iprior) != 1) {
 | 
			
		||||
			if (sscanf(prior, "%d", &iprior) != 1) {
 | 
			
		||||
				ast_cli(fd, "'%s' is not a valid priority\n", prior);
 | 
			
		||||
				prior = NULL;
 | 
			
		||||
			}
 | 
			
		||||
@@ -1700,7 +1700,7 @@ static int pbx_load_module(void)
 | 
			
		||||
								else
 | 
			
		||||
									ast_log(LOG_WARNING, "Can't use 'same' priority on the first entry!\n");
 | 
			
		||||
							} else  {
 | 
			
		||||
								if (sscanf(pri, "%i", &ipri) != 1) {
 | 
			
		||||
								if (sscanf(pri, "%d", &ipri) != 1) {
 | 
			
		||||
									if ((ipri = ast_findlabel_extension2(NULL, con, realext, pri, cidmatch)) < 1) {
 | 
			
		||||
										ast_log(LOG_WARNING, "Invalid priority/label '%s' at line %d\n", pri, v->lineno);
 | 
			
		||||
										ipri = 0;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user