summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-01-22 16:42:05 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-01-22 16:42:05 -0500
commit0f0a03b518ff6dbb61814896e5efc9b5878904e4 (patch)
treedd4b7ee65c493feae634671cf709ad58978c7fde /config.c
parent73a00e3b343526887579f698ca2db324cc4c7cee (diff)
oops fix bug
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 e9ecbf3..4afc203 100644
--- a/config.c
+++ b/config.c
@@ -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 {