Ticket #27936: sunwait-main.c.diff
File sunwait-main.c.diff, 451 bytes (added by nonstop.server@…, 13 years ago) |
---|
-
main.c
old new 151 151 } 152 152 /* this looks different from the others because 77E 153 153 parses as scientific notation */ 154 if ( 1 == sscanf(argv[i], "%lf%", &temp, &hemisphere)154 if (2 == sscanf(argv[i], "%lf%1[Ee]", &temp, &hemisphere) 155 155 && (argv[i][strlen(argv[i])-1] == 'E' || 156 156 argv[i][strlen(argv[i])-1] == 'e')) { 157 157 lon = temp;