From e023993681e8be6bfb138175838b3c7096b332af Mon Sep 17 00:00:00 2001 From: Leo Tenenbaum Date: Mon, 22 Feb 2021 13:58:47 -0500 Subject: fix ted_seterr typo --- ted.c | 4 ++-- 1 file 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; -- cgit v1.2.3