0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-26 00:32:35 +01:00

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 */
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. */