Fix ncl build with -Werror=format-security

From: Orion Poplawski <orion_at_nyahnyahspammersnyahnyah>
Date: Sat Feb 01 2014 - 09:34:55 MST

The attached patch fixes building ncl 6.1.2 with
-Werror=format-security, which is now standard in Fedora. Note that
replacing many of the fprintf()s with fputs() (and sprintf with strncpy)
would be more efficient, though probably not an issue for this code.

To understand why it is important to fix this, please see
https://fedoraproject.org/wiki/Format-Security-FAQ page.

-- 
Orion Poplawski
Technical Manager                     303-415-9701 x222
NWRA/CoRA Division                    FAX: 303-415-9702
3380 Mitchell Lane                  orion@cora.nwra.com
Boulder, CO 80301              http://www.cora.nwra.com


_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk

Received on Sat Feb 1 09:35:22 2014

This archive was generated by hypermail 2.1.8 : Fri Feb 07 2014 - 16:39:11 MST