IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 20, 2018, 9:10:43 PM (8 years ago)
Author:
eugene
Message:

use ps_snprintf_nowarn function to avoid compiler optimization warnings triggered by overly-script gcc checking since 8.1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppTranslate/src/ppMopsWrite.c

    r40346 r40553  
    107107
    108108  //field in header that tells about the CMF version
    109   char cmfVersion[8];
    110   sprintf(cmfVersion, PS1_DV_FORMAT, args->version);
     109  char cmfVersion[16];
     110  ps_snprintf_nowarn(cmfVersion, 16, PS1_DV_FORMAT, args->version);
    111111  psMetadataAddStr(header, PS_LIST_TAIL, "CMFVERSION", 0, "CMF version", cmfVersion);
    112112
Note: See TracChangeset for help on using the changeset viewer.