compat_win32: fix aa_fprintf() not to write junk chars in the end