nsString temp2; temp2.AssignWithConversion(ctime(&(cookie->expires)));
nsString temp2; temp2.AssignWithConversion(ctime(&(expires)));
COOKIE_GetCookieListForViewer(nsString& aCookieList) {  PRUnichar *buffer = (PRUnichar*)PR_Malloc(2*BUFLEN2);  int g, cookieNum;  cookie_CookieStruct * cookie;  /* Get rid of any expired cookies now so user doesn't   * think/see that we're keeping cookies in memory.   */  cookie_RemoveExpiredCookies();  /* generate the list of cookies in alphabetical order */  cookie = NULL;  while ((cookie = NextCookieAfter(cookie, &cookieNum))) {    char *fixed_name = cookie_FixQuoted(cookie->name);    char *fixed_value = cookie_FixQuoted(cookie->cookie);    char *fixed_domain_or_host = cookie_FixQuoted(cookie->host);    char *fixed_path = cookie_FixQuoted(cookie->path);    PRUnichar * Domain = cookie_Localize("Domain");    PRUnichar * Host = cookie_Localize("Host");    PRUnichar * Yes = cookie_Localize("Yes");    PRUnichar * No = cookie_Localize("No");    PRUnichar * AtEnd = cookie_Localize("AtEndOfSession");    buffer[0] = '\0';    g = 0;    nsString temp1; temp1.AssignWithConversion("%c%d%c%s%c%s%c%S%c%s%c%s%c%S%c%S");    nsString temp2; temp2.AssignWithConversion(ctime(&(cookie->expires)));    g += nsTextFormatter::snprintf(buffer+g, BUFLEN2-g,      temp1.GetUnicode(),      BREAK, cookieNum,      BREAK, fixed_name,      BREAK, fixed_value,      BREAK, cookie->isDomain ? Domain : Host,      BREAK, fixed_domain_or_host,      BREAK, fixed_path,      BREAK, cookie->xxx ? Yes : No,      BREAK, cookie->expires ? (temp2.GetUnicode()) : AtEnd    );    PR_FREEIF(fixed_name);    PR_FREEIF(fixed_value);    PR_FREEIF(fixed_domain_or_host);    PR_FREEIF(fixed_path);    Recycle(Domain);    Recycle(Host);    Recycle(Yes);    Recycle(No);    Recycle(AtEnd);    aCookieList += buffer;  }  PR_FREEIF(buffer);}