From 3304675affd22e9ede2c92b5c0085961a797485e Mon Sep 17 00:00:00 2001 From: bptato Date: Thu, 18 Feb 2021 19:18:06 +0100 Subject: Support kitty image protocol --- etc.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'etc.c') diff --git a/etc.c b/etc.c index 2870caf..bc72005 100644 --- a/etc.c +++ b/etc.c @@ -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); -- cgit v1.2.3