*rangeRequest = string.ToNewCString();
*rangeRequest = ToNewCString(string);
nsPluginStreamInfo::MakeByteRangeString(nsByteRange* aRangeList, char** rangeRequest, PRInt32 *numRequests){  *rangeRequest = nsnull;  *numRequests  = 0;  //the string should look like this: bytes=500-700,601-999  if(!aRangeList)    return;  PRInt32 requestCnt = 0;  nsCAutoString string("bytes=");  for(nsByteRange * range = aRangeList; range != nsnull; range = range->next)  {    // XXX zero length?    if(!range->length)      continue;    // XXX needs to be fixed for negative offsets    string.AppendInt(range->offset);    string.Append("-");    string.AppendInt(range->offset + range->length - 1);    if(range->next)      string += ",";        requestCnt++;  }  // get rid of possible trailing comma  string.Trim(",", PR_FALSE);  *rangeRequest = string.ToNewCString();  *numRequests  = requestCnt;  return;}