projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac8ca29
)
fixed compiler warning
author
Holger Schemel
<info@artsoft.org>
Mon, 17 Jun 2024 06:32:19 +0000
(08:32 +0200)
committer
Holger Schemel
<info@artsoft.org>
Mon, 17 Jun 2024 06:32:19 +0000
(08:32 +0200)
src/libgame/zip/ioapi.c
patch
|
blob
|
history
diff --git
a/src/libgame/zip/ioapi.c
b/src/libgame/zip/ioapi.c
index 20da15240ad5ab441702cf64ed5626724239ce1d..5a31fcbfdfb6ae598eed85bfe6c9ec6891baf21d 100644
(file)
--- a/
src/libgame/zip/ioapi.c
+++ b/
src/libgame/zip/ioapi.c
@@
-123,7
+123,7
@@
static voidpf ZCALLBACK fopen64_file_func(ZIP_UNUSED voidpf opaque, const void *
{
const char *fd_prefix = "fd:";
if (strncmp(filename, fd_prefix, strlen(fd_prefix)) == 0)
- file = fdopen(dup(atoi(&
filename
[strlen(fd_prefix)])), mode_fopen);
+ file = fdopen(dup(atoi(&
((const char*)filename)
[strlen(fd_prefix)])), mode_fopen);
else
file = fopen64((const char*)filename, mode_fopen);
return file_build_ioposix(file, (const char*)filename);