ircd_lexer: use correct variable here.
ircd_paths[IRCD_PATH_ETC] is what's wanted, not IRCD_PATH_ETC.
This commit is contained in:
parent
ec2301263e
commit
a9b809c796
1 changed files with 1 additions and 1 deletions
|
@ -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. */
|
||||||
|
|
Loading…
Reference in a new issue