use strcpy in codes_mapping_get_lp_info
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 place...
Please register or sign in to comment