unsigned char *udst = (unsigned char *)dst;
for(i = 0; i < length && src[i]; i++) {
- triplet |= base64_decode[src[i] & 0xff] << (6 * (i & 3));
+ triplet |= (uint32_t)(base64_decode[src[i] & 0xff] << (6 * (i & 3)));
if((i & 3) == 3) {
if(triplet & 0xff000000U) {
return f;
}
+bool string_eq(const char *first, const char *second) {
+ return !first == !second &&
+ !(first && second && strcmp(first, second));
+}