Skip to content

write_counted_string: avoid undefined behavior in fwrite() call

Alan Coopersmith requested to merge alanc/libice:issue-11 into master

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

Merge request reports

Loading