/*
- * Copyright (C) 2000,2001 Nikos Mavroyanopoulos <nmav@hellug.gr>
+ * Copyright (C) 2000,2001,2003 Nikos Mavroyanopoulos <nmav@hellug.gr>
*
- * This file is part of GNUTLS.
+ * This file is part of GNUTLS.
*
* The GNUTLS library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
int _gnutls_fbase64_decode( const opaque* header, const uint8 * data, size_t data_size,
uint8 ** result);
-#define B64SIZE( data_size) ((data_size%3==0)?((data_size/3)*4):(4+((data_size/3)*4)))
+#define B64SIZE( data_size) ((data_size%3==0)?((data_size*4)/3):(4+((data_size*4)/3)))
/* The size for B64 encoding + newlines plus header
*/