Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Kartatz committed Oct 2, 2024
1 parent e949a01 commit 4ea8b54
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/wio.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,12 @@ int wio_fprintf(FILE* const stream, const char* const format, ...) {
return wsize;
}

value = malloc((size_t) wsize + 1);

if (value == NULL) {
return -1;
}

wsize = vsnprintf(value, (size_t) wsize + 1, format, list);

if (wsize < 0) {
Expand Down

0 comments on commit 4ea8b54

Please sign in to comment.