mirror of
https://github.com/tmux/tmux.git
synced 2026-04-15 19:46:27 +00:00
Increase b64_pton buffer to allow for Base64 without padding, from
Michal Majchrowicz.
This commit is contained in:
@@ -1383,7 +1383,7 @@ tty_keys_clipboard(struct tty *tty, const char *buf, size_t len, size_t *size)
|
||||
copy[end] = '\0';
|
||||
|
||||
/* Convert from base64. */
|
||||
needed = (end / 4) * 3;
|
||||
needed = ((end + 3) / 4) * 3;
|
||||
if (needed == 0) {
|
||||
free(copy);
|
||||
return (0);
|
||||
|
||||
Reference in New Issue
Block a user