]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
(fix #378) use fs_offset_t for fsize NaitLee/378-exec-file-eof-no-newline
authorNaitLee <naitli@foxmail.com>
Mon, 31 Jul 2023 09:17:49 +0000 (17:17 +0800)
committerNaitLee <naitli@foxmail.com>
Mon, 31 Jul 2023 09:17:49 +0000 (17:17 +0800)
Signed-off-by: NaitLee <naitli@foxmail.com>
cmd.c

diff --git a/cmd.c b/cmd.c
index 6d5797d30985178ba88e087689a9c95b3281996e..c318bd917a0baadcd4dbcb51fea8b8961d8cbcf7 100644 (file)
--- a/cmd.c
+++ b/cmd.c
@@ -605,7 +605,7 @@ static void Cmd_StuffCmds_f (cmd_state_t *cmd)
 static void Cmd_Exec(cmd_state_t *cmd, const char *filename)
 {
        char *f;
-       long int fsize;
+       fs_offset_t fsize;
        size_t filenameLen = strlen(filename);
        qbool isdefaultcfg =
                !strcmp(filename, "default.cfg") ||