Replace "strcat_int" with "snprintf"

Removed the "strcat_int" function, replaced all calls to it with calls
to "snprintf", and made a few other memory-saving adjustments to the
code.