Skip to content

Switch raylib/log to using static buffer - #181

Open
jan-beukes wants to merge 1 commit into
odin-lang:masterfrom
jan-beukes:master
Open

Switch raylib/log to using static buffer#181
jan-beukes wants to merge 1 commit into
odin-lang:masterfrom
jan-beukes:master

Conversation

@jan-beukes

@jan-beukes jan-beukes commented Sep 1, 2026

Copy link
Copy Markdown

This example was causing a segfault on my Linux machine. This is because of the reuse of the same va_list in a loop with vsnprintf.
I believe that just using a static buffer should be fine here since raylib's TraceLog uses a buffer of 256 by default.

Checklist before submitting:

  • This example has been added to .github/workflows/check.yml (for automatic testing)
  • This example compiles cleanly with flags -vet -strict-style -vet-tabs -disallow-do -warnings-as-errors
  • This example the naming and style convention: https://github.com/odin-lang/examples/wiki/Naming-and-style-convention (exceptions can be made for ports of examples that need to match 1:1 to the original source).
  • By submitting, I understand that this example is made available under these licenses: Public Domain and Odin's zlib license. Only for third-party dependencies are other licenses allowed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant