Move to snprintf instead of sprintf plus remove legacy uncompiled code.