char *buffer = (char*)PR_Malloc(BUFLEN2); int g = 0, nopreviewNum;
nsAutoString buffer = ""; int nopreviewNum = 0;
WLLT_GetNopreviewListForViewer(nsString& aNopreviewList){  char *buffer = (char*)PR_Malloc(BUFLEN2);  int g = 0, nopreviewNum;  wallet_MapElement *url;  char* urlCString;  wallet_InitializeURLList();  buffer[0] = '\0';  nopreviewNum = 0;  PRInt32 count = LIST_COUNT(wallet_URL_list);  for (PRInt32 i=0; i<count; i++) {    url = NS_STATIC_CAST(wallet_MapElement*, wallet_URL_list->ElementAt(i));    if (url->item2.CharAt(NO_PREVIEW) == 'y') {      urlCString = url->item1.ToNewCString();      g += PR_snprintf(buffer+g, BUFLEN2-g,"%c        <OPTION value=%d>%s</OPTION>\n",      BREAK,      nopreviewNum,      urlCString      );      delete[] urlCString;      nopreviewNum++;    }  }  aNopreviewList = buffer;  PR_FREEIF(buffer);}