fix printing line number

This commit is contained in:
Gwenhael Le Moine 2024-10-13 20:16:54 +02:00
parent 0c3f575025
commit c501d00c1c
No known key found for this signature in database
GPG key ID: FDFE3669426707A7

View file

@ -375,7 +375,7 @@ char* ChfBuildMessage( const ChfDescriptor* descriptor )
if ( descriptor->line_number != CHF_UNKNOWN_LINE_NUMBER ) {
tmp_p = scopy( tmp_p, " ", tmp_end );
sprintf( def_message, "(%s,%)", descriptor->file_name, descriptor->line_number );
sprintf( def_message, "(%s:%i)", descriptor->file_name, descriptor->line_number );
tmp_p = scopy( tmp_p, def_message, tmp_end );
}