Commit 92d5ad22 authored by Christophe Massiot's avatar Christophe Massiot

fix off-by-one error in directory input

parent 60a5ac98
......@@ -1082,7 +1082,7 @@ off_t LookupAuxFile( const char *psz_arg, int64_t i_wanted, bool b_absolute )
uint8_t *p_mid_aux = p_aux + i_mid_offset * sizeof(uint64_t);
uint64_t i_mid_stc = FromSTC( p_mid_aux );
if ( i_offset1 == i_mid_offset )
if ( i_offset1 == i_mid_offset && i_offset2 == i_mid_offset )
break;
if ( i_mid_stc >= i_wanted )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment