diff --git a/ircd/ircd_lexer.l b/ircd/ircd_lexer.l index ccaf2e99..7112cc30 100644 --- a/ircd/ircd_lexer.l +++ b/ircd/ircd_lexer.l @@ -196,7 +196,7 @@ void cinclude(void) /* if its not found in PREFIX, look in IRCD_PATH_ETC */ char fnamebuf[BUFSIZE]; - snprintf(fnamebuf, sizeof(fnamebuf), "%s%c%s", IRCD_PATH_ETC, RB_PATH_SEPARATOR, c); + snprintf(fnamebuf, sizeof(fnamebuf), "%s%c%s", ircd_paths[IRCD_PATH_ETC], RB_PATH_SEPARATOR, c); tmp_fbfile_in = fopen(fnamebuf, "r"); /* wasnt found there either.. error. */