diff options
author | bptato <nincsnevem662@gmail.com> | 2021-02-18 18:18:06 +0000 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2021-02-18 18:18:06 +0000 |
commit | 3304675affd22e9ede2c92b5c0085961a797485e (patch) | |
tree | f476160aca8d8700798d5ec97b33339d2514f025 /etc.c | |
parent | Handle iTerm2 images more efficiently (diff) | |
download | w3m-3304675affd22e9ede2c92b5c0085961a797485e.tar.gz w3m-3304675affd22e9ede2c92b5c0085961a797485e.zip |
Support kitty image protocol
Diffstat (limited to 'etc.c')
-rw-r--r-- | etc.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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); |