Use 'fputs' instead of '(f)printf' to avoid -Wformat-security warnings