diff options
Diffstat (limited to 'src/nvim/screen.c')
-rw-r--r-- | src/nvim/screen.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/screen.c b/src/nvim/screen.c index f65fa1066f..53b2baf1bb 100644 --- a/src/nvim/screen.c +++ b/src/nvim/screen.c @@ -4692,9 +4692,9 @@ win_redr_status_matches ( return; if (has_mbyte) - buf = alloc((unsigned)Columns * MB_MAXBYTES + 1); + buf = xmalloc(Columns * MB_MAXBYTES + 1); else - buf = alloc((unsigned)Columns + 1); + buf = xmalloc(Columns + 1); if (match == -1) { /* don't show match but original text */ match = 0; |