fix fprintf format-security warnings