added compatibility with linux

This commit is contained in:
2025-02-03 22:30:13 +05:00
parent 2faff91981
commit 5d275c8dd1
4 changed files with 13 additions and 5 deletions

View File

@@ -43,7 +43,7 @@ char* NULLABLE(sprintf_malloc)(size_t buffer_size, cstr format, ...){
char* NULLABLE(vsprintf_malloc)(size_t buffer_size, cstr format, va_list argv){
char* buf = malloc(buffer_size);
int r = vsprintf_s(buf, buffer_size, format, argv);
int r = vsprintf(buf, format, argv);
if(r < 0){
free(buf);
return NULL;