From e493a146bdd7213e4b2aa16fbc4ecb988f27a59a Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Sun, 21 Oct 2012 12:55:29 +0000 Subject: [PATCH] In cgi_show_request() only restore the client request up to client_iob->cur Everything beyond that hasn't been touched by get_header() and thus doesn't need restoring. --- cgisimple.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cgisimple.c b/cgisimple.c index fd488586..c1758b97 100644 --- a/cgisimple.c +++ b/cgisimple.c @@ -1,4 +1,4 @@ -const char cgisimple_rcs[] = "$Id: cgisimple.c,v 1.115 2012/03/09 17:55:49 fabiankeil Exp $"; +const char cgisimple_rcs[] = "$Id: cgisimple.c,v 1.116 2012/10/21 12:39:27 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/cgisimple.c,v $ @@ -255,7 +255,7 @@ jb_err cgi_show_request(struct client_state *csp, /* * Repair the damage done to the IOB by get_header() */ - for (p = csp->client_iob->buf; p < csp->client_iob->eod; p++) + for (p = csp->client_iob->buf; p < csp->client_iob->cur; p++) { if (*p == '\0') *p = '\n'; } -- 2.39.2