3e3a5dc563a514a25a82a6eeae3b22561c6a4b56
chinhli
  Fri Jun 15 15:22:38 2012 -0700
Fixed hgLogin.c:1054: warning: function returns address of local variable.
diff --git src/hg/hgLogin/hgLogin.c src/hg/hgLogin/hgLogin.c
index f01d318..1efb101 100644
--- src/hg/hgLogin/hgLogin.c
+++ src/hg/hgLogin/hgLogin.c
@@ -1034,31 +1034,31 @@
     return TRUE;
 else
     return FALSE;
 }
 
 char *cookieDomainName()
 /* Return the domain name to be used by the cookies or NULL. Allocd
  * here. */
 /* Return central.domain if the returnToURL is also in the same domain
  * */
 /* else return the domain in returnTo URL generated by (remote)
  * hgSession.*/
 {
 char *centralDomain=cloneString(cfgOption(CFG_CENTRAL_DOMAIN));
 char *returnURL = getReturnToURL();
-char returnToDomain[256];
+char *returnToDomain;
 sscanf(returnURL, "http://%[^/]", returnToDomain);
 if (endsWith(returnToDomain,centralDomain))
     return centralDomain;
 else
     return returnToDomain;
 }
 
 void displayLoginSuccess(char *userName, int userID)
 /* display login success msg, and set cookie */
 {
 hPrintf("<h2>UCSC Genome Browser</h2>"
     "<p align=\"left\">"
     "</p>"
     "<span style='color:red;'></span>"
     "\n");