Skip to content

Commit

Permalink
Fix struct stat size to avoid stack corruption.
Browse files Browse the repository at this point in the history
  • Loading branch information
FeepingCreature committed Jan 20, 2024
1 parent 92bf9b3 commit 487bdf6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/c/sys/stat.nt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ struct stat_struct {
timespec st_atim;
timespec st_mtim;
timespec st_ctim;
size_t __glibc_reserved1;
size_t __glibc_reserved2;
size_t __glibc_reserved3;
}

alias S_IFREG = 0x8000;
Expand Down

0 comments on commit 487bdf6

Please sign in to comment.