IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 8, 2023, 12:17:35 PM (3 years ago)
Author:
eugene
Message:

merge from eam_branches/ipp-20220316. fixes for more pendantic gcc; add opihi memory stats; string vector improvements; use named macros for fixed string lengths

Location:
trunk/Ohana
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana

  • trunk/Ohana/src/libdvo/src/dvo_convert_PS1_V3.c

    r40291 r42389  
    270270
    271271    // RAW_IMAGE_NAME_LEN > DVO_IMAGE_NAME_LEN
    272     strncpy (out[i].name, in[i].name, DVO_IMAGE_NAME_LEN - 1);
    273     out[i].name[DVO_IMAGE_NAME_LEN - 1] = 0; // force termination
     272    strncpy_nowarn (out[i].name, in[i].name, DVO_IMAGE_NAME_LEN - 1);
    274273
    275274    out[i].tzero            = in[i].tzero;
     
    338337
    339338    // RAW_IMAGE_NAME_LEN > DVO_IMAGE_NAME_LEN
    340     strncpy (out[i].name, in[i].name, DVO_IMAGE_NAME_LEN - 1);
    341     out[i].name[DVO_IMAGE_NAME_LEN - 1] = 0; // force termination
     339    strncpy_nowarn (out[i].name, in[i].name, DVO_IMAGE_NAME_LEN - 1);
    342340
    343341    out[i].tzero            = in[i].tzero;
     
    401399
    402400  for (i = 0; i < Nvalues; i++) {
    403     strncpy (out[i].name, in[i].name, 31); // out[32], in[32]
    404     out[i].name[31] = 0; // force termination
     401    strncpy_nowarn (out[i].name, in[i].name, 31); // out[32], in[32]
    405402
    406403    out[i].code  = in[i].code;         
     
    437434
    438435  for (i = 0; i < Nvalues; i++) {
    439     strncpy (out[i].name, in[i].name, 31); // out[32], in[32]
    440     out[i].name[31] = 0; // force termination
     436    strncpy_nowarn (out[i].name, in[i].name, 31); // out[32], in[32]
    441437
    442438    out[i].code  = in[i].code;         
Note: See TracChangeset for help on using the changeset viewer.