diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2021-01-22 16:42:05 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2021-01-22 16:42:05 -0500 |
commit | 0f0a03b518ff6dbb61814896e5efc9b5878904e4 (patch) | |
tree | dd4b7ee65c493feae634671cf709ad58978c7fde /config.c | |
parent | 73a00e3b343526887579f698ca2db324cc4c7cee (diff) |
oops fix bug
Diffstat (limited to 'config.c')
-rw-r--r-- | config.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -16,7 +16,7 @@ typedef enum { // all worth it for the -Wformat warnings #define config_err(cfg, ...) snprintf((cfg)->ted->error, sizeof (cfg)->ted->error - 1, "%s:%u: ", (cfg)->filename, (cfg)->line_number), \ - snprintf((cfg)->ted->error + strlen((cfg)->ted->error), strlen((cfg)->ted->error) - sizeof (cfg)->ted->error - 1, __VA_ARGS__), \ + snprintf((cfg)->ted->error + strlen((cfg)->ted->error), sizeof (cfg)->ted->error - 1 - strlen((cfg)->ted->error), __VA_ARGS__), \ (cfg)->error = true typedef struct { |