summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2021-06-05 20:40:21 -0400
committermrb0nk500 <b0nk@b0nk.xyz>2021-06-05 20:40:21 -0400
commitfafa513041fb13f679dfe107749aa2a8223040e3 (patch)
tree4999139d02124ca9db350f72046c2d8bd0aa2e5a /config.c
parentac402aa9aecc9a07d4615fcda1cba28fb6bc0600 (diff)
Fixed a bug, and typo in the `strtok_r()` call in the
config parser loop.
Diffstat (limited to 'config.c')
-rw-r--r--config.c2
1 files changed, 1 insertions, 1 deletions
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);
}
}