mirror of
https://github.com/tmate-io/tmate.git
synced 2026-01-23 02:24:06 +00:00
Merge branch 'obsd-master'
Conflicts: Makefile cmd-list-commands.c cmd-suspend-client.c job.c tmux.h xmalloc.c
This commit is contained in:
commit
562af864bd
100 changed files with 432 additions and 757 deletions
2
paste.c
2
paste.c
|
|
@ -278,7 +278,7 @@ paste_make_sample(struct paste_buffer *pb, int utf8flag)
|
|||
len = pb->size;
|
||||
if (len > width)
|
||||
len = width;
|
||||
buf = xmalloc(len * 4 + 4);
|
||||
buf = xreallocarray(NULL, len, 4 + 4);
|
||||
|
||||
if (utf8flag)
|
||||
used = utf8_strvis(buf, pb->data, len, flags);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue