HF RL Explorer

base64 encoding: fix bug

base64 encoding: fix bug: a task in smol-software-harbor (Harbor dataset). b64 encode() in src/b64.c produces TWE + a stray character instead of TWE= for inputs whose length is not a multiple of 3: the third output character of the last group must be = when the group has only one input byte. Fix…

The task

`b64_encode()` in `src/b64.c` produces `TWE` + a stray character instead of `TWE=` for inputs whose length is not a multiple of 3: the third output character of the last group must be `=` when the group has only one input byte. Fix it and run `make -B test`.

Part of efederici/smol-software-harbor.