X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Futils.c;fp=src%2Futils.c;h=8655e2beb848fd0ed81456ea650ac2180f174fb0;hb=3528edaeb862e2a223a1384b90b372356d15d777;hp=231938dcfc7723964ffc6da0f8f16ed823af00ca;hpb=ce4d55b72fd4290d4710f10e755f6dd9ed039d88;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) {