/*
utils.c -- gathering of some stupid small functions
Copyright (C) 1999-2005 Ivo Timmermans
- 2000-2012 Guus Sliepen <guus@tinc-vpn.org>
+ 2000-2013 Guus Sliepen <guus@tinc-vpn.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
dst[di + 1] = alphabet[triplet & 63]; triplet >>= 6;
dst[di + 2] = alphabet[triplet];
dst[di + 3] = 0;
- length = di + 2;
+ length = di + 3;
break;
case 1:
triplet = usrc[si];
dst[di] = alphabet[triplet & 63]; triplet >>= 6;
dst[di + 1] = alphabet[triplet];
dst[di + 2] = 0;
- length = di + 1;
+ length = di + 2;
break;
default:
dst[di] = 0;