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/opihi/cmd.data/imspline_apply.c

    r34584 r40549  
    4747  gfits_create_matrix (&out[0].header, &out[0].matrix);
    4848  if ((y1[0].file[0] != '*') && (y1[0].file[0] != '(')) {
    49     sprintf (out[0].file, "*%s", y1[0].file);
     49    snprintf_nowarn (out[0].file, OPIHI_NAME_SIZE, "*%s", y1[0].file);
    5050  } else {
    51     sprintf (out[0].file, "%s", y1[0].file);
     51    snprintf_nowarn (out[0].file, OPIHI_NAME_SIZE, "%s", y1[0].file);
    5252  }
    5353
Note: See TracChangeset for help on using the changeset viewer.