IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 20, 2018, 8:58:31 PM (8 years ago)
Author:
eugene
Message:

add snprintf_nowarn function to avoid compiler warnings from desired snprint truncations

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/libdvo/src/convert.c

    r39523 r40549  
    224224
    225225  if (deg < 0) {
    226     snprintf (line, 16, "-%02d:%04.1f", abs(hr), mn);
     226    snprintf_nowarn (line, 16, "-%02d:%04.1f", abs(hr), mn);
    227227  } else {
    228     snprintf (line, 16, "+%02d:%04.1f", hr, mn);
     228    snprintf_nowarn (line, 16, "+%02d:%04.1f", hr, mn);
    229229  }     
    230230  return (line);
Note: See TracChangeset for help on using the changeset viewer.