Skip to content

Commit

Permalink
Five-character NORAD designation should be null-terminated
Browse files Browse the repository at this point in the history
  • Loading branch information
Bill-Gray committed Feb 7, 2024
1 parent 0de84fb commit c00d8f5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tle_out.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ static void store_norad_number_in_alpha5( char *obuff, const int norad_number)
for( i = 2; i >= 0; i--, tval >>= 6)
obuff[i] = int_to_base64( tval & 0x3f);
}
obuff[5] = '\0';
}

/* SpaceTrack TLEs have, on the second line, leading zeroes in front of the
Expand Down

0 comments on commit c00d8f5

Please sign in to comment.