Skip to content

Commit

Permalink
Update uephem.c
Browse files Browse the repository at this point in the history
  • Loading branch information
cjhoward authored Nov 4, 2023
1 parent d08605e commit a497c29
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion uephem.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ int main(int argc, char* argv[])

// Open ephemeris file
FILE* file;
if (fopen_s(&file, argv[1], "rb") != 0)
file = fopen(argv[1], "rb");
if (!file)
error(err_fopen);

// Parse item ID
Expand Down

0 comments on commit a497c29

Please sign in to comment.