aboutsummaryrefslogtreecommitdiff
path: root/cmd-capture-pane.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2014-10-16 16:46:31 +0100
committerThomas Adam <thomas@xteddy.org>2014-10-16 16:46:31 +0100
commita77355b6bf9a0beb2e9d0a8b9613266984bb598d (patch)
tree38ca21b0aeb986adea2de22cc12adda8a52cf4c5 /cmd-capture-pane.c
parent2874a431c050527244a56e7f241baf053c722f88 (diff)
parenta27ba6e38006c12c48de88600b8cff9f6aabfed7 (diff)
downloadrtmux-a77355b6bf9a0beb2e9d0a8b9613266984bb598d.tar.gz
rtmux-a77355b6bf9a0beb2e9d0a8b9613266984bb598d.tar.bz2
rtmux-a77355b6bf9a0beb2e9d0a8b9613266984bb598d.zip
Merge branch 'obsd-master'
Diffstat (limited to 'cmd-capture-pane.c')
-rw-r--r--cmd-capture-pane.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd-capture-pane.c b/cmd-capture-pane.c
index 0efe1cd0..bddb7627 100644
--- a/cmd-capture-pane.c
+++ b/cmd-capture-pane.c
@@ -48,7 +48,7 @@ const struct cmd_entry cmd_capture_pane_entry = {
char *
cmd_capture_pane_append(char *buf, size_t *len, char *line, size_t linelen)
{
- buf = xrealloc(buf, 1, *len + linelen + 1);
+ buf = xrealloc(buf, *len + linelen + 1);
memcpy(buf + *len, line, linelen);
*len += linelen;
return (buf);