From 553dd5a7f04c4f9c05172bc4c29d3d47512fc71a Mon Sep 17 00:00:00 2001 From: Elizabeth Myers Date: Mon, 28 Mar 2016 14:58:26 -0500 Subject: [PATCH] ircd_lexer: use correct variable here. ircd_paths[IRCD_PATH_ETC] is what's wanted, not IRCD_PATH_ETC. --- ircd/ircd_lexer.l | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. */