1
0
mirror of git://projects.qi-hardware.com/xburst-tools.git synced 2024-11-01 10:15:19 +02:00

Fixed loading to memory

This commit is contained in:
Sergey Gridassov 2010-12-10 17:21:15 +03:00
parent aca1d17249
commit 90652cdb75

View File

@ -290,7 +290,7 @@ int ingenic_loadstage(void *hndl, int id, const char *file) {
fseek(fd, 0, SEEK_SET);
void *data = malloc(size);
size_t read_bytes = fread(data, size, 1, fd);
size_t read_bytes = fread(data, 1, size, fd);
fclose(fd);
@ -460,7 +460,7 @@ int ingenic_load_sdram_file(void *hndl, uint32_t base, const char *file) {
fseek(fd, 0, SEEK_SET);
void *data = malloc(size);
size_t bytes = fread(data, size, 1, fd);
size_t bytes = fread(data, 1, size, fd);
fclose(fd);