From c501d00c1cc16181f49e058729b9a29c63f904e1 Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Sun, 13 Oct 2024 20:16:54 +0200 Subject: [PATCH] fix printing line number --- src/libChf/src/chf_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libChf/src/chf_init.c b/src/libChf/src/chf_init.c index 9a0a351..77ba280 100644 --- a/src/libChf/src/chf_init.c +++ b/src/libChf/src/chf_init.c @@ -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 ); }