const char *tail = tailURI.ToNewCString();  *uri = PR_smprintf("%s%s#%d", kNewsMessageRootURI, tail, key);
*uri = PR_smprintf("%s%s#%d", kNewsMessageRootURI, (const char *)nsAutoCString(tailURI), key);
nsresult nsBuildNewsMessageURI(const char *baseURI, PRUint32 key, char** uri){	if(!uri)		return NS_ERROR_NULL_POINTER;  // need to convert news://hostname/.. to news_message://hostname/..  nsAutoString tailURI(baseURI);  // chop off news:/  if (tailURI.Find(kNewsRootURI) == 0)    tailURI.Cut(0, kNewsRootURILen);    const char *tail = tailURI.ToNewCString();    	*uri = PR_smprintf("%s%s#%d", kNewsMessageRootURI, tail, key);  	return NS_OK;}