mirror of
				https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
				synced 2025-11-03 21:43:32 +00:00 
			
		
		
		
	mgcp: Address compiler error for sprintf misusage...
The hardening flags of debian have highlighted this sprintf mis-usage in the testcase. Address it.
This commit is contained in:
		@@ -210,7 +210,7 @@ static struct msgb *create_msg(const char *str)
 | 
			
		||||
	struct msgb *msg;
 | 
			
		||||
 | 
			
		||||
	msg = msgb_alloc_headroom(4096, 128, "MGCP msg");
 | 
			
		||||
	int len = sprintf((char *)msg->data, str);
 | 
			
		||||
	int len = sprintf((char *)msg->data, "%s", str);
 | 
			
		||||
	msg->l2h = msgb_put(msg, len);
 | 
			
		||||
	return msg;
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user