diff options
author | Omar Polo <op@cvs.openbsd.org> | 2024-08-28 15:51:02 +0000 |
---|---|---|
committer | Omar Polo <op@cvs.openbsd.org> | 2024-08-28 15:51:02 +0000 |
commit | c81617dfdcd9dbf79b9ad5e5da5e2286b78d7d0b (patch) | |
tree | bbe507e9f1818eca32fe4dacac861fae34185d12 /games | |
parent | df2e008e8b960475b743eb099b1141957a52e8c4 (diff) |
use the right FILE to parse the config, not stdin
I typoed the file argument to getline() in rev 1.14 when converting
fgetln remnants to getline back in aug 2022. guess not many people
are hosting hunt servers.
Diffstat (limited to 'games')
-rw-r--r-- | games/hunt/huntd/conf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/games/hunt/huntd/conf.c b/games/hunt/huntd/conf.c index 4cf86f90db5..73ed49eb32c 100644 --- a/games/hunt/huntd/conf.c +++ b/games/hunt/huntd/conf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: conf.c,v 1.14 2022/08/08 17:57:05 op Exp $ */ +/* $OpenBSD: conf.c,v 1.15 2024/08/28 15:51:01 op Exp $ */ /* David Leonard <d@openbsd.org>, 1999. Public domain. */ #include <sys/select.h> @@ -252,7 +252,7 @@ load_config(FILE *f, char *fnm) size_t linesize = 0; ssize_t linelen; - while ((linelen = getline(&line, &linesize, stdin)) != -1) { + while ((linelen = getline(&line, &linesize, f)) != -1) { lineno++; if (line[linelen - 1] == '\n') line[linelen - 1] = '\0'; |