git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
InitRD - Libc++, libm, bochs, dbserver
[tpg/acess2.git]
/
Usermode
/
Applications
/
axwin3_src
/
WM
/
image.c
diff --git
a/Usermode/Applications/axwin3_src/WM/image.c
b/Usermode/Applications/axwin3_src/WM/image.c
index
ef08150
..
5f863f9
100644
(file)
--- a/
Usermode/Applications/axwin3_src/WM/image.c
+++ b/
Usermode/Applications/axwin3_src/WM/image.c
@@
-58,7
+58,9
@@
tImage *Image_Load(const char *URI)
}
tmp = fread(buf, 1, filesize, fp);
}
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 )
fclose(fp);
}
else if( strcmp(uri->Proto, "base64") == 0 )
@@
-97,7
+99,7
@@
tImage *Image_Load(const char *URI)
*/
int UnBase64(uint8_t *Dest, char *Src, int BufSize)
{
*/
int UnBase64(uint8_t *Dest, char *Src, int BufSize)
{
- uint32_t val;
+ uint32_t val
= 0
;
int i, j;
char *start_src = Src;
int i, j;
char *start_src = Src;
UCC
git Repository :: git.ucc.asn.au