diff options
author | nicm <nicm> | 2014-10-08 17:35:58 +0000 |
---|---|---|
committer | nicm <nicm> | 2014-10-08 17:35:58 +0000 |
commit | a27ba6e38006c12c48de88600b8cff9f6aabfed7 (patch) | |
tree | fc8ecf1c1b965f70b95d0a3e472cd0b1a2e1d2c9 /cmd-save-buffer.c | |
parent | 77efcf8bdd14cd19dc445cf6e44bba7af414939c (diff) | |
download | rtmux-a27ba6e38006c12c48de88600b8cff9f6aabfed7.tar.gz rtmux-a27ba6e38006c12c48de88600b8cff9f6aabfed7.tar.bz2 rtmux-a27ba6e38006c12c48de88600b8cff9f6aabfed7.zip |
Add xreallocarray and remove nmemb argument from xrealloc.
Diffstat (limited to 'cmd-save-buffer.c')
-rw-r--r-- | cmd-save-buffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd-save-buffer.c b/cmd-save-buffer.c index ea238450..db80e48d 100644 --- a/cmd-save-buffer.c +++ b/cmd-save-buffer.c @@ -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); |