diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2017-01-23 23:14:04 +0100 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2017-01-23 23:14:04 +0100 |
commit | 084e964286bfcd13ee6a25a2ee35dfba9da1072e (patch) | |
tree | e1680ea3aaa78320f7b589f37a96eb3bbc929a6a /liberty-tui.c | |
parent | 0e08055d6d361d2a902225046e1e463bc8ce50c0 (diff) | |
download | liberty-084e964286bfcd13ee6a25a2ee35dfba9da1072e.tar.gz liberty-084e964286bfcd13ee6a25a2ee35dfba9da1072e.tar.xz liberty-084e964286bfcd13ee6a25a2ee35dfba9da1072e.zip |
Fixes to the previous batch of commits
Diffstat (limited to 'liberty-tui.c')
-rw-r--r-- | liberty-tui.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/liberty-tui.c b/liberty-tui.c index 4d48c2a..7cc9bfb 100644 --- a/liberty-tui.c +++ b/liberty-tui.c @@ -194,9 +194,7 @@ row_buffer_space (struct row_buffer *self, int width, chtype attrs) if (width < 0) return; - while (self->chars_len + width >= self->chars_alloc) - self->chars = xreallocarray (self->chars, - sizeof *self->chars, (self->chars_alloc <<= 1)); + ARRAY_RESERVE (self->chars, (size_t) width); struct row_char space = { .attrs = attrs, .c = ' ', .width = 1 }; self->total_width += width; |