nsCRT::memcpy(hdrs2->all_headers, hdrs->all_headers, hdrs->all_headers_fp);
memcpy(hdrs2->all_headers, hdrs->all_headers, hdrs->all_headers_fp);
MimeHeaders_copy (MimeHeaders *hdrs){  MimeHeaders *hdrs2;  if (!hdrs) return 0;  hdrs2 = (MimeHeaders *) PR_MALLOC(sizeof(*hdrs));  if (!hdrs2) return 0;  memset(hdrs2, 0, sizeof(*hdrs2));  if (hdrs->all_headers)	{	  hdrs2->all_headers = (char *) PR_MALLOC(hdrs->all_headers_fp);	  if (!hdrs2->all_headers)		{		  PR_Free(hdrs2);		  return 0;		}	  nsCRT::memcpy(hdrs2->all_headers, hdrs->all_headers, hdrs->all_headers_fp);	  hdrs2->all_headers_fp   = hdrs->all_headers_fp;	  hdrs2->all_headers_size = hdrs->all_headers_fp;	}  hdrs2->done_p = hdrs->done_p;  if (hdrs->heads)	{	  int i;	  hdrs2->heads = (char **) PR_MALLOC(hdrs->heads_size										* sizeof(*hdrs->heads));	  if (!hdrs2->heads)		{		  PR_FREEIF(hdrs2->all_headers);		  PR_Free(hdrs2);		  return 0;		}	  hdrs2->heads_size = hdrs->heads_size;	  for (i = 0; i < hdrs->heads_size; i++)		{		  hdrs2->heads[i] = (hdrs2->all_headers +							 (hdrs->heads[i] - hdrs->all_headers));		}	}  return hdrs2;}