Skip to content

Commit

Permalink
🎨 win thing
Browse files Browse the repository at this point in the history
  • Loading branch information
fennecdjay committed May 16, 2024
1 parent 01aa72e commit 8f1cfa3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gwfmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ ANN static void read_py(struct AstGetter_ *arg, char **ptr, size_t *sz) {
FILE *f = open_memstream(ptr, sz);
#else
FILE *f = tmpfile();
fwrite(ptr, 1, sz, f);
fwrite(ptr, 1, *sz, f);
#endif
yyin = arg->f;
yyout = f;
Expand Down

0 comments on commit 8f1cfa3

Please sign in to comment.