mirror of
https://github.com/tmux/tmux.git
synced 2026-03-06 07:45:35 +00:00
Use buffer size for b64_pton, from someone in GitHub issue 4882.
This commit is contained in:
@@ -1389,7 +1389,7 @@ tty_keys_clipboard(struct tty *tty, const char *buf, size_t len, size_t *size)
|
||||
return (0);
|
||||
}
|
||||
out = xmalloc(needed);
|
||||
if ((outlen = b64_pton(copy, out, len)) == -1) {
|
||||
if ((outlen = b64_pton(copy, out, needed)) == -1) {
|
||||
free(out);
|
||||
free(copy);
|
||||
return (0);
|
||||
|
||||
Reference in New Issue
Block a user