Minor new sanity test in reader

darcs-hash:20071006105453-75c98-3f5d1a0a175a7b810f68b38dec472bb697081742.gz
This commit is contained in:
liljencrantz 2007-10-06 20:54:53 +10:00
parent fcd474afe8
commit 9b74687384

View file

@ -1530,10 +1530,15 @@ void reader_sanity_check()
{
if( is_interactive)
{
if( !data )
sanity_lose();
if(!( data->buff_pos <= data->buff_len ))
sanity_lose();
if(!( data->buff_len == wcslen( data->buff ) ))
sanity_lose();
}
}