mirror of
https://github.com/tmux/tmux.git
synced 2025-09-06 19:38:21 +00:00
Add xreallocarray and remove nmemb argument from xrealloc.
This commit is contained in:
@@ -147,7 +147,7 @@ do_print:
|
||||
size = pb->size - used;
|
||||
|
||||
msglen = size * 4 + 1;
|
||||
msg = xrealloc(msg, 1, msglen);
|
||||
msg = xrealloc(msg, msglen);
|
||||
|
||||
strvisx(msg, start, size, VIS_OCTAL|VIS_TAB);
|
||||
cmdq_print(cmdq, "%s", msg);
|
||||
|
Reference in New Issue
Block a user