Division by zero panic in fwrite()
The SUSv2 doc says:
If size or nitems is 0, fwrite() returns 0 and the state of the stream remains unchanged.
This doesn't seem to be handled properly in relibc. If size is 0, fwrite() panics with division by zero. It causes random crashes in OpenTTD.