#include #include void catch() { printf("error=yes\n"); exit(1); } main() { char *buf; char *final; char addon[100]; short i; short j; short k; short hex1; short hex2; void catch(); int f; int g; char *tmp_char, *last_amp; int thesize = 0; tmp_char = (char *) getenv ( "CONTENT_LENGTH" ); if ( tmp_char != (char *)NULL ) thesize = atoi ( tmp_char ); if ( thesize == 0 ) thesize = 8190; buf = (char *)malloc(thesize+1); final = (char *)malloc(2 * (thesize+1)); if ( buf == (char *)NULL || final == (char *)NULL ) { printf ("ERROR=\"Can not malloc\"\n"); exit (1); } memset ( final, 0, 2*(thesize+1) ); memset ( buf, 0, thesize+1 ); signal(SIGALRM,catch); alarm(5); f=fileno(stdin); g=readn(f,buf,thesize); if(g<1){ exit(1); } for(g=0;g