More fixes for stupid ancient base64 snippet :/

pull/30/head
Jeroen Domburg 10 years ago
parent 6ae806f60d
commit 7df9b2bcdb
  1. 2
      user/base64.c

@ -53,7 +53,7 @@ int ICACHE_FLASH_ATTR base64_decode(size_t in_len, const char *in, size_t out_le
unsigned char ch; unsigned char ch;
if(isspace(in[ii])) continue; if(isspace(in[ii])) continue;
if(in[ii]=='=') break; /* stop at = */ if(in[ii]=='=') break; /* stop at = */
ch=base64dec_tab[(unsigned)in[ii]]; ch=base64dec_tab[(unsigned int)in[ii]];
if(ch==255) break; /* stop at a parse error */ if(ch==255) break; /* stop at a parse error */
v=(v<<6)|ch; v=(v<<6)|ch;
rem+=6; rem+=6;

Loading…
Cancel
Save