From fafa513041fb13f679dfe107749aa2a8223040e3 Mon Sep 17 00:00:00 2001 From: mrb0nk500 Date: Sat, 5 Jun 2021 20:40:21 -0400 Subject: Fixed a bug, and typo in the `strtok_r()` call in the config parser loop. --- config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.c b/config.c index 948c3a5..f3eabf5 100644 --- a/config.c +++ b/config.c @@ -97,6 +97,6 @@ config *parse_config(const char *filename) { while (*buf != '\0') { char *line = get_line(&buf); char *value; - char *name = strtok_r(buf, "=", &value); + char *name = strtok_r(line, "=", &value); } } -- cgit v1.2.3-13-gbd6f