AxWin3 - Fixed overflow caused by using width in height calculations
[tpg/acess2.git] / Usermode / Applications / axwin3_src / WM / image.c
index a0b86e9..49a074d 100644 (file)
@@ -58,6 +58,9 @@ tImage *Image_Load(const char *URI)
                }
                
                tmp = fread(buf, 1, filesize, fp);
+               if(tmp != filesize) {
+                       _SysDebug("Image_Load: fread() failed - %i != filesize (%i)", tmp, filesize);
+               }
                fclose(fp);
        }
        else if( strcmp(uri->Proto, "base64") == 0 )

UCC git Repository :: git.ucc.asn.au