source: trunk/dports/sysutils/sunwait/files/patch-main.c.diff @ 128061

Last change on this file since 128061 was 124149, checked in by khindenburg@…, 6 years ago

sunwait: add patch to allow eastern longitude to work #27936

File size: 451 bytes
  • 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;
Note: See TracBrowser for help on using the repository browser.