tests/command_test.c : Improve error reporting when '\0' is found in coding history.

This commit is contained in:
Erik de Castro Lopo 2008-10-10 06:05:28 +11:00
parent dcfdd7cbb4
commit ca75132a34
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2008-10-10 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
* tests/command_test.c
Improve error reporting when '\0' is found in coding history.
2008-10-09 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
* src/broadcast.c

View File

@ -988,7 +988,7 @@ check_coding_history_newlines (const char *filename)
} ;
if (bc_read.coding_history [k] == 0)
{ printf ("\n\nLine %d : '\\0' within coding history.\n\n", __LINE__) ;
{ printf ("\n\nLine %d : '\\0' within coding history at index %d of %d.\n\n", __LINE__, k, bc_read.coding_history_size) ;
exit (1) ;
} ;
} ;