A lot of strcpy->SAFECOPY and sprintf->safe_snprintf/SAFEPRINTF conversions and other general code cleanup too.