Convert std::string to const char* in printf call.

This commit is contained in:
Bartosz Taudul 2022-10-05 23:45:59 +02:00
parent 754f7a5167
commit 5d7cf137cf
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -5364,7 +5364,7 @@ void SourceView::Save( const Worker& worker, size_t start, size_t stop )
if( sz < 5 || memcmp( fn.c_str() + sz - 4, ".asm", 4 ) != 0 ) if( sz < 5 || memcmp( fn.c_str() + sz - 4, ".asm", 4 ) != 0 )
{ {
char tmp[1024]; char tmp[1024];
sprintf( tmp, "%s.asm", fn ); sprintf( tmp, "%s.asm", fn.c_str() );
f = fopen( tmp, "wb" ); f = fopen( tmp, "wb" );
} }
else else