write_counted_string: avoid undefined behavior in fwrite() call
In C23 and earlier, it is undefined behavior to call fwrite() with a NULL pointer, even if the size to copy is zero bytes.
Closes: #11 (closed)
Signed-off-by: Alan Coopersmith
Due to an influx of spam, we have had to impose restrictions on new accounts. Please see this wiki page for instructions on how to get full permissions. Sorry for the inconvenience.
In C23 and earlier, it is undefined behavior to call fwrite() with a NULL pointer, even if the size to copy is zero bytes.
Closes: #11 (closed)
Signed-off-by: Alan Coopersmith