fencepost error readying from apache. works now with
authorwarlord <warlord@cb58f699-b61c-0410-a6fe-9272a202ed29>
Thu, 18 Mar 2004 00:44:04 +0000 (00:44 +0000)
committerwarlord <warlord@cb58f699-b61c-0410-a6fe-9272a202ed29>
Thu, 18 Mar 2004 00:44:04 +0000 (00:44 +0000)
POSTs larger than BUFSIZ

git-svn-id: https://svn.middleware.georgetown.edu/cpp-sp/trunk@840 cb58f699-b61c-0410-a6fe-9272a202ed29

apache-2.0/mod_shib.cpp

index efa95c6..d46df03 100644 (file)
@@ -615,7 +615,7 @@ extern "C" int shib_shire_handler (request_rec* r)
     //ap_hard_timeout("[mod_shib] CGI Parser", r);
 
     memset(buff, 0, sizeof(buff));
-    while (ap_get_client_block(r, buff, sizeof(buff)) > 0) {
+    while (ap_get_client_block(r, buff, sizeof(buff)-1) > 0) {
       cgistr += buff;
       memset(buff, 0, sizeof(buff));
     }