to get filled in, otherwise we sometimes get garbage back from
apache.
git-svn-id: https://svn.middleware.georgetown.edu/cpp-sp/trunk@839
cb58f699-b61c-0410-a6fe-
9272a202ed29
++x;
y=0;
- while(line[y++] = line[x++]);
+ while(line[x])
+ line[y++] = line[x++];
+ line[y] = '\0';
return word;
}
char buff[BUFSIZ];
//ap_hard_timeout("[mod_shib] CGI Parser", r);
- while (ap_get_client_block(r, buff, sizeof(buff)) > 0)
+ memset(buff, 0, sizeof(buff));
+ while (ap_get_client_block(r, buff, sizeof(buff)) > 0) {
cgistr += buff;
+ memset(buff, 0, sizeof(buff));
+ }
//ap_kill_timeout(r);