Skip to content

Commit

Permalink
BUG: use uint64 for holding the size of a directory, otherwise we ove…
Browse files Browse the repository at this point in the history
…rflow on larger directories and never clean things up. this is related to issue #135
  • Loading branch information
ciscon committed May 10, 2024
1 parent 3925960 commit 1254c11
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/sys.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,17 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
typedef struct
{
char name[MAX_DEMO_NAME];
int size;
int time;
size_t size;
size_t time;
qbool isdir; //bliP: list dir
} file_t;

typedef struct
{
file_t *files;
int size;
int numfiles;
int numdirs;
file_t *files;
uint_least64_t size;
size_t numfiles;
size_t numdirs;
} dir_t;

int Sys_FileTime (const char *path);
Expand Down

0 comments on commit 1254c11

Please sign in to comment.