Ticket #27936: sunwait-main.c.diff

File sunwait-main.c.diff, 451 bytes (added by nonstop.server@…, 13 years ago)
  • main.c

    old new  
    151151    }
    152152    /* this looks different from the others because 77E
    153153       parses as scientific notation */
    154     if (1 == sscanf(argv[i], "%lf%", &temp, &hemisphere)
     154    if (2 == sscanf(argv[i], "%lf%1[Ee]", &temp, &hemisphere)
    155155        && (argv[i][strlen(argv[i])-1] == 'E' ||
    156156            argv[i][strlen(argv[i])-1] == 'e')) {
    157157      lon = temp;