Skip to content

Commit

Permalink
Fix compiler warnings for printf statements.
Browse files Browse the repository at this point in the history
  • Loading branch information
stephent committed Sep 15, 2015
1 parent 74cf8fc commit d6f55e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ObjectiveWMM/WMM/GeomagnetismLibrary.c
Original file line number Diff line number Diff line change
Expand Up @@ -1208,7 +1208,7 @@ CALLS: MAG_DMSstringToDegree(buffer, &CoordGeodetic->lambda); (The program uses
sscanf(buffer, "%d/%d/%d", &MagneticDate->Month, &MagneticDate->Day, &MagneticDate->Year);
if(!MAG_DateToYear(MagneticDate, Error_Message))
{
printf(Error_Message);
printf("%s", Error_Message);
printf("\nPlease re-enter Date in MM/DD/YYYY or MM DD YYYY format, or as a decimal year\n");
fgets(buffer, 40, stdin);
i = 0;
Expand All @@ -1232,7 +1232,7 @@ CALLS: MAG_DMSstringToDegree(buffer, &CoordGeodetic->lambda); (The program uses
{
if(!MAG_DateToYear(MagneticDate, Error_Message))
{
printf(Error_Message);
printf("%s", Error_Message);
strcpy(buffer, "");
printf("\nError encountered, please re-enter Date in MM/DD/YYYY or MM DD YYYY format, or as a decimal year\n");
fgets(buffer, 40, stdin);
Expand Down

0 comments on commit d6f55e2

Please sign in to comment.