mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-11-04 05:15:22 +00:00 
			
		
		
		
	Fix GCC 8 build issues.
This fixes build warnings found by GCC 8. In some cases format truncation is intentional so the warning is just suppressed. ASTERISK-27824 #close Change-Id: I724f146cbddba8b86619d4c4a9931ee877995c84
This commit is contained in:
		@@ -530,14 +530,15 @@ static void try_redirect(newtComponent c)
 | 
			
		||||
	struct ast_chan *chan;
 | 
			
		||||
	char dest[256];
 | 
			
		||||
	struct message *m;
 | 
			
		||||
	static const char tmp_prefix[] = "Enter new extension for ";
 | 
			
		||||
	char channame[256];
 | 
			
		||||
	char tmp[80];
 | 
			
		||||
	char tmp[sizeof(tmp_prefix) + sizeof(channame)];
 | 
			
		||||
	char *context;
 | 
			
		||||
 | 
			
		||||
	chan = newtListboxGetCurrent(c);
 | 
			
		||||
	if (chan) {
 | 
			
		||||
		strncpy(channame, chan->name, sizeof(channame) - 1);
 | 
			
		||||
		snprintf(tmp, sizeof(tmp), "Enter new extension for %s", channame);
 | 
			
		||||
		snprintf(tmp, sizeof(tmp), "%s%s", tmp_prefix, channame);
 | 
			
		||||
		if (get_user_input(tmp, dest, sizeof(dest)))
 | 
			
		||||
			return;
 | 
			
		||||
		if ((context = strchr(dest, '@'))) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user