jwerle / b64.c

Base64 encode/decode
MIT License
269 stars 103 forks source link

realloc was always behind in size 1/2 #7

Closed CurlyMoo closed 9 years ago

CurlyMoo commented 9 years ago

Because size is increased in the lines after the realloc, the realloc always contained one bit less as stored in the enc variable.

stephenmathieson commented 9 years ago

nice catch!

cc @jwerle

jwerle commented 9 years ago

:+1: