Fix a potentially insecure string format for 'fprintf' which raised clang warning

Found by Brian Ripley with '-Wformat-security'