Support kitty image protocol

This commit is contained in:
bptato
2021-02-18 19:18:06 +01:00
parent de26f6156c
commit 3304675aff
5 changed files with 89 additions and 1 deletions

4
etc.c
View File

@@ -2016,6 +2016,10 @@ base64_encode(const unsigned char *src, size_t len)
unsigned long j;
size_t k;
if (!len)
return NULL;
k = len;
if (k % 3)
k += 3 - (k % 3);