ref: 58438f39bfd3b4d1fa1a1db94a48382cacb06ad5
parent: 5ef113213eb70f583fe1c8971cfa7e96e49530f9
author: mkf <mkf@cloud9p.org>
date: Wed Jun 5 15:24:36 EDT 2024
unix: use emalloc for vprintf
--- a/unix.c
+++ b/unix.c
@@ -72,7 +72,7 @@
int
vfprint(int fd, char *fmt, va_list arg)
{
- char *s = (char*)malloc(1024);
+ char *s = (char*)emalloc(1024);
int n;
n = vsprint(s, fmt, arg);