1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-05-01 08:27:46 +00:00

fix compile warning

This commit is contained in:
NotAdam 2018-06-10 16:26:26 +00:00
parent d3d02b19fd
commit 829c5ccea4

View file

@ -92,8 +92,8 @@ Core::Network::Packets::GamePacket::~GamePacket()
void Core::Network::Packets::GamePacket::savePacket() void Core::Network::Packets::GamePacket::savePacket()
{ {
char filename[20]; char filename[20];
sprintf( filename, "dump_0x%x_%i.dat", m_subType, Util::getTimeMs() ); sprintf( filename, "dump_0x%x_%li.dat", m_subType, Util::getTimeMs() );
FILE * fp = nullptr; FILE* fp = nullptr;
fp = fopen( filename, "wb" ); fp = fopen( filename, "wb" );
fwrite( &m_dataBuf[0], 1, m_segHdr.size, fp ); fwrite( &m_dataBuf[0], 1, m_segHdr.size, fp );
fclose( fp ); fclose( fp );