ircd_lexer: use correct variable here.

ircd_paths[IRCD_PATH_ETC] is what's wanted, not IRCD_PATH_ETC.
This commit is contained in:
Elizabeth Myers 2016-03-28 14:58:26 -05:00
parent ec2301263e
commit a9b809c796

View file

@ -196,7 +196,7 @@ void cinclude(void)
/* if its not found in PREFIX, look in IRCD_PATH_ETC */ /* if its not found in PREFIX, look in IRCD_PATH_ETC */
char fnamebuf[BUFSIZE]; 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"); tmp_fbfile_in = fopen(fnamebuf, "r");
/* wasnt found there either.. error. */ /* wasnt found there either.. error. */