mirror of
https://github.com/tmate-io/tmate.git
synced 2026-01-23 02:24:06 +00:00
Add xreallocarray and remove nmemb argument from xrealloc.
This commit is contained in:
parent
77efcf8bdd
commit
a27ba6e380
17 changed files with 65 additions and 48 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue