28dfc89b15bcdf4c84e0c08c8e29885f127e05fd
- Replace undefined 'len' variable references with 'name_len' - Add explicit null terminators after memcpy operations - Move name_len declaration to Windows-specific scope to eliminate unused variable warning on BSD - Standardize string copy pattern across all platforms: strlen -> clamp -> memcpy -> null terminate - Fix increment operator placement for clarity (i++ moved outside array indexing) - Remove duplicate name_len declaration in platform_directory_watch_check This ensures proper bounds checking and null termination for filenames on both Windows and BSD systems, preventing potential buffer overflows when handling long filenames (approaching STK_PATH_MAX).
stk (Stalwart Toolkit)
stk is a lightweight, modular toolkit for building games and game engines. It provides a portable foundation for dynamically loading modules, native or WASM, without enforcing any architecture or design choices.
It is designed to run on modern systems running POSIX and Windows.
Key Features
- Dynamic module loading (native
.so/.dll) - Hot-swapping of modules at runtime
- Optional WASM support for multi-language modules
- Developer tools: lightweight metadata, logging/tracing, and dependency management
- Minimal, portable API
stk is non-opinionated: developers control architecture, engine design, and game logic while relying on a predictable, lean foundation.
Languages
C
88.3%
Makefile
10.8%
Shell
0.9%