Don't call sscanf() on data that would not fit

This fixes a potential issue where a transform name that exceeds 255 bytes can overflow outside of the buffer allocated for it.