Fix calloc argument order
All checks were successful
Alpine 3.20 Success

This commit is contained in:
2024-08-08 09:34:33 +02:00
parent fdf845d0bd
commit 49d7cb12bb
2 changed files with 4 additions and 4 deletions

View File

@@ -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;