result[PL_strlen(result)] = 0;
result[nsCRT::strlen(result)] = 0;
mime_set_url_imap_part(const char *url, char *imappart, char *libmimepart){  char *result = 0;  char *whereCurrent = PL_strstr(url, "/;section=");  if (whereCurrent)  {	  *whereCurrent = 0;  }	  result = (char *) PR_MALLOC(PL_strlen(url) + PL_strlen(imappart) + PL_strlen(libmimepart) + 17);  if (!result) return 0;  PL_strcpy(result, url);  PL_strcat(result, "/;section=");  PL_strcat(result, imappart);  PL_strcat(result, "&part=");  PL_strcat(result, libmimepart);  result[PL_strlen(result)] = 0;  if (whereCurrent)	  *whereCurrent = '/';  return result;}