Fixed bug in garbled snprintf length. Also added many casts to quiet
the linux (gcc) compiler.
Authored by: dwarren 2016-02-03
Parent: [r8609]
Child: [r8611]