1
0
mirror of git://projects.qi-hardware.com/xburst-tools.git synced 2024-11-22 23:14:38 +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); fseek(fd, 0, SEEK_SET);
void *data = malloc(size); void *data = malloc(size);
size_t read_bytes = fread(data, size, 1, fd); size_t read_bytes = fread(data, 1, size, fd);
fclose(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); fseek(fd, 0, SEEK_SET);
void *data = malloc(size); void *data = malloc(size);
size_t bytes = fread(data, size, 1, fd); size_t bytes = fread(data, 1, size, fd);
fclose(fd); fclose(fd);