IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 42347


Ignore:
Timestamp:
Feb 1, 2023, 4:13:45 PM (3 years ago)
Author:
eugene
Message:

add ps_strncpy_nowarn to handle overly-strict gcc version 9; handle NULL value in psError print statement

Location:
branches/eam_branches/ipp-20220316/psModules/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20220316/psModules/src/detrend/pmDark.c

    r40454 r42347  
    129129    } else {
    130130        if (!ordinateParseConcept(value, readout, name)) {
    131             psError(PM_ERR_CONFIG, false, "trouble parsing rule %s for DARK.ORDINATE %s", rule, name);
     131            psError(PM_ERR_CONFIG, false, "trouble parsing rule %s for DARK.ORDINATE %s", "NULL", name);
    132132            return false;
    133133        }
  • branches/eam_branches/ipp-20220316/psModules/src/extras/pmVisualUtils.c

    r34085 r42347  
    222222    }
    223223
    224     strncpy(name, addNodeName, MAX_COMPONENT_LENGTH);
     224    ps_strncpy_nowarn(name, addNodeName, MAX_COMPONENT_LENGTH);
    225225    char *pname = name+1;               // Take off the period
    226226    // Iterate through the components of addNodeName.  Strip off the first
Note: See TracChangeset for help on using the changeset viewer.