CE fix strange characters appearing at the end of file
All checks were successful
Build documentation / build-and-deploy (push) Successful in 2m46s

This commit is contained in:
2026-03-05 21:52:36 +01:00
parent abc7ac39c1
commit d7dc141874
6 changed files with 41 additions and 21 deletions

View File

@@ -4,6 +4,7 @@
#include <printf.h>
#include <stdarg.h>
#include <stddef.h>
#include <string.h>
void cprintf (struct context* context, const char* fmt, ...) {
va_list args;
@@ -16,6 +17,7 @@ void cprintf (struct context* context, const char* fmt, ...) {
return;
}
memset (buf, 0, CPRINTF_BUF_MAX);
int len = vsnprintf (buf, CPRINTF_BUF_MAX, fmt, args);
va_end (args);