diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2024-08-08 09:34:33 +0200 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2024-08-08 09:34:33 +0200 |
commit | 49d7cb12bb2f47216528ea6d6f58869e0cf12a2e (patch) | |
tree | b4b876e6b6487e02c136e7fa7870db4fbda3733c /liberty-xui.c | |
parent | fdf845d0bd6ddde585bc16900f89f63f3ef1880b (diff) | |
download | liberty-49d7cb12bb2f47216528ea6d6f58869e0cf12a2e.tar.gz liberty-49d7cb12bb2f47216528ea6d6f58869e0cf12a2e.tar.xz liberty-49d7cb12bb2f47216528ea6d6f58869e0cf12a2e.zip |
Fix calloc argument order
Diffstat (limited to 'liberty-xui.c')
-rw-r--r-- | liberty-xui.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/liberty-xui.c b/liberty-xui.c index 083f14b..3f193b5 100644 --- a/liberty-xui.c +++ b/liberty-xui.c @@ -205,8 +205,8 @@ static void line_editor_start (struct line_editor *self, char prompt) { self->alloc = 16; - self->line = xcalloc (sizeof *self->line, self->alloc); - self->w = xcalloc (sizeof *self->w, self->alloc); + self->line = xcalloc (self->alloc, sizeof *self->line); + self->w = xcalloc (self->alloc, sizeof *self->w); self->len = 0; self->point = 0; self->prompt = prompt; |