mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 07:17:45 -04:00
fixes for gcc warnings wrt 64 bit platforms
This commit is contained in:
parent
30969671e5
commit
2170797544
4 changed files with 12 additions and 8 deletions
|
@ -205,7 +205,8 @@ static int write_chunk(chunk_name_e name, int len, void *data, void *file)
|
|||
|
||||
#define CHECKED_WRITE(name,len,data) { \
|
||||
if (PicoStateProgressCB && name < CHUNK_DEFAULT_COUNT && chunk_names[name]) { \
|
||||
strncpy(sbuff + 9, chunk_names[name], sizeof(sbuff) - 9); \
|
||||
strncpy(sbuff + 9, chunk_names[name], sizeof(sbuff)-1 - 9); \
|
||||
sbuff[sizeof(sbuff)-1] = '\0'; \
|
||||
PicoStateProgressCB(sbuff); \
|
||||
} \
|
||||
if (data == buf2 && len > CHUNK_LIMIT_W) \
|
||||
|
@ -216,7 +217,8 @@ static int write_chunk(chunk_name_e name, int len, void *data, void *file)
|
|||
|
||||
#define CHECKED_WRITE_BUFF(name,buff) { \
|
||||
if (PicoStateProgressCB && name < CHUNK_DEFAULT_COUNT && chunk_names[name]) { \
|
||||
strncpy(sbuff + 9, chunk_names[name], sizeof(sbuff) - 9); \
|
||||
strncpy(sbuff + 9, chunk_names[name], sizeof(sbuff)-1 - 9); \
|
||||
sbuff[sizeof(sbuff)-1] = '\0'; \
|
||||
PicoStateProgressCB(sbuff); \
|
||||
} \
|
||||
if (!write_chunk(name, sizeof(buff), &buff, file)) \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue