Fixed the indexing of filename_t past its end in DD_SetConfigFile. Also, fixed dangerous misplaced parentheses in the same function.
Danij: I am officially worried about the usage of FILENAME_T_MAXLEN. You should check each instance where it's used and check if, in fact, you should use FILENAME_T_LASTINDEX.
Fixed the indexing of filename_t past its end in DD_SetConfigFile.
Also, fixed dangerous misplaced parentheses in the same function.
Danij: I am officially worried about the usage of FILENAME_T_MAXLEN.
You should check each instance where it's used and check if, in fact,
you should use FILENAME_T_LASTINDEX.