Guild icon
Teeworlds
discord.gg/teeworlds / development
For discussions around the development of the official Teeworlds
Between 2021-12-19 00:00:00Z and 2021-12-20 00:00:00Z
Avatar
  • Zero-terminate the buffer inside of fs_getcwd on failure for more convenience when using the function (see change in CStorage).
  • Assert that buffer sizes are positive numbers before doing manual zero-termination like this:
cpp buffer[buffer_size-1] = 0; /* assure null termination */ Code looks messier than I wanted, because ISO C90 forbids mixed declarations and code.
Exported 2 message(s)