summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-02-22 13:58:47 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-02-22 13:58:47 -0500
commite023993681e8be6bfb138175838b3c7096b332af (patch)
tree5a2460c0164640776733b0c51054d6443a649211
parent78e5db44b915c58748682554913220efdef77c9e (diff)
fix ted_seterr typo
-rw-r--r--ted.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ted.c b/ted.c
index b6e100c..e12ae0d 100644
--- a/ted.c
+++ b/ted.c
@@ -1,8 +1,8 @@
static void menu_open(Ted *ted, Menu menu);
// this is a macro so we get -Wformat warnings
-#define ted_seterr(buffer, ...) \
- snprintf(ted->error, sizeof ted->error - 1, __VA_ARGS__)
+#define ted_seterr(ted, ...) \
+ snprintf((ted)->error, sizeof (ted)->error - 1, __VA_ARGS__)
void ted_seterr_to_buferr(Ted *ted, TextBuffer *buffer) {
size_t size = sizeof ted->error;