diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2021-02-22 13:58:47 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2021-02-22 13:58:47 -0500 |
commit | e023993681e8be6bfb138175838b3c7096b332af (patch) | |
tree | 5a2460c0164640776733b0c51054d6443a649211 /ted.c | |
parent | 78e5db44b915c58748682554913220efdef77c9e (diff) |
fix ted_seterr typo
Diffstat (limited to 'ted.c')
-rw-r--r-- | ted.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |