}
tmp = fread(buf, 1, filesize, fp);
- _SysDebug("Image_Load: fread() returned %i",tmp);
+ if(tmp != filesize) {
+ _SysDebug("Image_Load: fread() failed - %i != filesize (%i)", tmp, filesize);
+ }
fclose(fp);
}
else if( strcmp(uri->Proto, "base64") == 0 )
*/
int UnBase64(uint8_t *Dest, char *Src, int BufSize)
{
- uint32_t val;
+ uint32_t val = 0;
int i, j;
char *start_src = Src;