Commit 5caa2bab authored by Andy chenee's avatar Andy chenee Committed by Rémi Denis-Courmont

duplicate: fix bug of NumInRange(), i_stop always < 0

Signed-off-by: default avatarRémi Denis-Courmont <remi@remlab.net>
parent f9249212
......@@ -310,7 +310,7 @@ static bool NumInRange( char *psz_range, int i_num )
i_start = strtol( psz_range, &end, 0 );
if( end == psz_range ) i_start = i_num;
i_stop = strtol( psz, &end, 0 );
i_stop = strtol( psz+1, &end, 0 );
if( end == psz_range ) i_stop = i_num;
}
else
......
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