--- ./src/sgDiv.c.in.orig 2008-07-14 09:02:43.000000000 -0700 +++ ./src/sgDiv.c.in 2009-10-19 12:26:04.000000000 -0700 @@ -745,7 +745,7 @@ p++; break; case 'u': /* Requested URL */ - strcat(buf, req->orig); + strncat(buf, req->orig, 2048); p++; break; default: @@ -782,7 +782,7 @@ void sgEmergency () } sgLogError("Going into emergency mode"); while(fgets(buf, MAX_BUF, stdin) != NULL){ - puts(""); + puts("ERR"); fflush(stdout); } sgLogError("ending emergency mode, stdin empty");