Skip to content

Commit 4ea8b54

Browse files
committed
Initial commit
1 parent e949a01 commit 4ea8b54

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/wio.c

+6
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,12 @@ int wio_fprintf(FILE* const stream, const char* const format, ...) {
8383
return wsize;
8484
}
8585

86+
value = malloc((size_t) wsize + 1);
87+
88+
if (value == NULL) {
89+
return -1;
90+
}
91+
8692
wsize = vsnprintf(value, (size_t) wsize + 1, format, list);
8793

8894
if (wsize < 0) {

0 commit comments

Comments
 (0)