commit ea6d8cf4e6d83ca32ce98443dc939ec897daf6b7
parent 334fc49dab766c427e4ea98719cbaf869e60b6c9
Author: Roberto E. Vargas Caballero <k0ga@shike2.net>
Date: Mon, 11 May 2026 10:16:52 +0200
Merge remote-tracking branch 'origin/master'
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/libc/arch/posix/tmpfile.c b/src/libc/arch/posix/tmpfile.c
@@ -13,7 +13,7 @@ tmpfile(void)
for (;;) {
if ((fname = tmpnam(NULL)) == NULL)
return NULL;
- if ((fp = fopen(fname, "wt+")) == NULL)
+ if ((fp = fopen(fname, "wbt+")) == NULL)
continue;
_unlink(fname);
return fp;