This commit is contained in:
cathugger 2018-07-09 16:54:44 +00:00
parent be50d6b929
commit 83a63a30ee
3 changed files with 23 additions and 16 deletions

View file

@ -84,6 +84,9 @@ int base64_valid(const char *src,size_t *count)
for (p = src;base64f[(u8)*p] != 0xFF;++p)
;
for (;*p == '=';++p)
;
if (count)
*count = (size_t) (p - src);
return !*p;