uri.Append(keyStr);  PR_smprintf_free(keyStr);
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/..  nsCString tailURI(baseURI);  // chop off news:/#if 0  if (tailURI.Find(kNewsRootURI) == 0)    tailURI.Cut(0, kNewsRootURILen);#else  PRInt32 strOffset = tailURI.Find(":/");  if (strOffset != -1)    tailURI.Cut(0, strOffset+2);#endif  	*uri = PR_smprintf("%s%s#%d", kNewsMessageRootURI, tailURI.GetBuffer(), key);  	return NS_OK;}