commit 565aac4be8c959bd7627836c2dae8823abca449a parent a6d6dd7c102aeed81bed2c7806880a5169072103 Author: z3bra <willyatmailoodotorg> Date: Tue May 10 08:23:29 +12000 Simplify base64_table[] declaration Diffstat:
base64.c | | | 8 | +------- |
diff --git a/base64.c b/base64.c @@ -8,13 +8,7 @@ #define BASE64_FOLD 76 -const char base64_table[] = { - 'A','B','C','D','E','F','G','H','I','J','K','L','M', - 'N','O','P','Q','R','S','T','U','V','W','X','Y','Z', - 'a','b','c','d','e','f','g','h','i','j','k','l','m', - 'n','o','p','q','r','s','t','u','v','w','x','y','z', - '0','1','2','3','4','5','6','7','8','9','+','/' -}; +const char base64_table[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; size_t base64_encode(char **buf, const unsigned char *msg, size_t len)