aboutsummaryrefslogtreecommitdiff
path: root/vendor/raylib
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2024-08-24 14:47:33 +0100
committergingerBill <bill@gingerbill.org>2024-08-24 14:47:33 +0100
commit19b95349a6f127efd1d858bfa0d6f3b4187801ce (patch)
treea8c1776a7fd2b25920dea7072c7a975aba22ec07 /vendor/raylib
parentd0eaf7642dcf38f6f98c50e4daa53d31e2fadd71 (diff)
Use `fmt.caprintf` directly
Diffstat (limited to 'vendor/raylib')
-rw-r--r--vendor/raylib/raylib.odin3
1 files changed, 1 insertions, 2 deletions
diff --git a/vendor/raylib/raylib.odin b/vendor/raylib/raylib.odin
index 835a1cf88..b2010c7a1 100644
--- a/vendor/raylib/raylib.odin
+++ b/vendor/raylib/raylib.odin
@@ -1684,8 +1684,7 @@ TextFormat :: proc(text: cstring, args: ..any) -> cstring {
// Text formatting with variables (sprintf style) and allocates (must be freed with 'MemFree')
TextFormatAlloc :: proc(text: cstring, args: ..any) -> cstring {
- str := fmt.tprintf(string(text), ..args)
- return strings.clone_to_cstring(str, MemAllocator())
+ return fmt.caprintf(string(text), ..args, allocator=MemAllocator())
}