diff options
author | mrb0nk500 <b0nk@b0nk.xyz> | 2021-06-05 20:40:21 -0400 |
---|---|---|
committer | mrb0nk500 <b0nk@b0nk.xyz> | 2021-06-05 20:40:21 -0400 |
commit | fafa513041fb13f679dfe107749aa2a8223040e3 (patch) | |
tree | 4999139d02124ca9db350f72046c2d8bd0aa2e5a /config.c | |
parent | ac402aa9aecc9a07d4615fcda1cba28fb6bc0600 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } } |