mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 13:50:03 +00:00 
			
		
		
		
	Merge pull request #5747 from JohelEGP/conditional_resize
fix(net): prevent gibberish padding on linux
This commit is contained in:
		
						commit
						b3cab3c450
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -912,7 +912,7 @@ void Room::RoomImpl::HandleChatPacket(const ENetEvent* event) { | |||
|     } | ||||
| 
 | ||||
|     // Limit the size of chat messages to MaxMessageSize
 | ||||
|     message.resize(MaxMessageSize); | ||||
|     message.resize(std::min(static_cast<u32>(message.size()), MaxMessageSize)); | ||||
| 
 | ||||
|     Packet out_packet; | ||||
|     out_packet << static_cast<u8>(IdChatMessage); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue