libutil

C Utility Library
git clone http://git.omkov.net/libutil
Log | Tree | Refs | README | LICENCE | Download

AuthorJamozed <[email protected]>
Date2021-02-21 01:04:23
Commit57a021b43104fce50b5fe1f74a9e5d8d40a5b41d
Parent61dd41733b4e1cb0e12478ee39345e5027a04790

base64: Fix incorrect variables in length macros

Diffstat

M src/base64.h | 4 ++--

1 files changed, 2 insertions, 2 deletions

diff --git a/src/base64.h b/src/base64.h
index b63db1d..6ddb4a8 100644
--- a/src/base64.h
+++ b/src/base64.h
@@ -36,8 +36,8 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE SOFTWARE.
 #include <stdint.h>
 #include <stdlib.h>
 
-#define B64ELEN(x) (((A + 2) / 3) * 4)
-#define B64DLEN(x) (((A + 3) / 4) * 3)
+#define B64ELEN(x) (((x + 2) / 3) * 4)
+#define B64DLEN(x) (((x + 3) / 4) * 3)
 
 extern size_t b64encode(uint8_t *dst, uint8_t *src, size_t len);
 extern size_t b64decode(uint8_t *dst, uint8_t *src, size_t len);