preinit: check return from write()

This commit is contained in:
Daniel Barlow 2024-01-07 21:24:16 +00:00
parent 7bc9cb6c55
commit 6971d03520

View file

@ -36,9 +36,10 @@ char * pr_u32(int32_t input) {
i+=2; i+=2;
buf[i] ='\0'; buf[i] ='\0';
write(2, buf, i); if(write(2, buf, i))
return buf; return buf;
else
return NULL;
} }