• Jonathan Jenkins's avatar
    use strcpy in codes_mapping_get_lp_info · 1e7328ef
    Jonathan Jenkins authored
    strncpy might prevent bad internal state from destroying everything, but it
    also writes MAX_NAME_LENGTH bytes unconditionally, clobbering input if it
    isn't long enough. Besides, internal state will only be inconsistent if people
    are trying to call codes_mapping_get_lp_info without configuring in the first