As a follow-up to vulnerability reported in Mozilla has checked similar constructs in the rest of
the MIME handling code. Although no further buffer overflows were found
we changed several function calls to use safer versions of the string
routines that will be more robust in the face of future code changes.