Skip to content

Commit

Permalink
Erroneous assert() : NORAD numbers sometimes have leading spaces inst…
Browse files Browse the repository at this point in the history
…ead of leading zeroes
  • Loading branch information
Bill-Gray committed Feb 8, 2024
1 parent c00d8f5 commit 1438e1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion get_el.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ static int get_norad_number( const char *buff)
else /* last four digits are 0-9; 'standard' NORAD desig */
{
for( i = 1; i <= 4; i++)
assert( buff[i] >= '0' && buff[i] <= '9');
assert( (buff[i] >= '0' && buff[i] <= '9') || buff[i] == ' ');
if( *buff > 'I')
{
digits[0]--;
Expand Down

0 comments on commit 1438e1b

Please sign in to comment.