summaryrefslogtreecommitdiff
path: root/pit/src/runtime.c
diff options
context:
space:
mode:
authorLLLL Colonq <llll@colonq>2026-09-04 16:29:31 -0400
committerLLLL Colonq <llll@colonq>2026-09-04 16:29:31 -0400
commit843ea34efc2c5ea10edc4d534304f8287f97fbbc (patch)
tree65c2b676b650413a6154ffa7b319d4d0b6f9cff4 /pit/src/runtime.c
parentc01f847b68a7fcd48eb0f3d456aa993a6f69ea8d (diff)
pit: printf
Diffstat (limited to 'pit/src/runtime.c')
-rw-r--r--pit/src/runtime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pit/src/runtime.c b/pit/src/runtime.c
index 633bff5..d4a0a62 100644
--- a/pit/src/runtime.c
+++ b/pit/src/runtime.c
@@ -80,7 +80,7 @@ void pit_error(pit_runtime *rt, char *format, ...) {
char buf[1024] = {0};
va_list vargs;
va_start(vargs, format);
- pit_libc_string_vsnprintf(buf, sizeof(buf), format, vargs);
+ pit_vsnprintf(rt, buf, sizeof(buf), format, vargs);
va_end(vargs);
rt->error = rt->msg_out_of_memory; /* we set the error now to prevent infinite recursion */
rt->error = pit_value_bytes_new_cstr(rt, buf); /* in case this errs also */