X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Futils.c;h=8655e2beb848fd0ed81456ea650ac2180f174fb0;hb=09f036b3aee79d5a5357ef670924ab49de0378dd;hp=231938dcfc7723964ffc6da0f8f16ed823af00ca;hpb=4436af55e55e79b496264fe114039fbc1198d71f;p=tinc diff --git a/src/utils.c b/src/utils.c index 231938dc..8655e2be 100644 --- a/src/utils.c +++ b/src/utils.c @@ -138,7 +138,7 @@ size_t b64decode_tinc(const char *src, void *dst, size_t length) { 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) {