projects
/
shibboleth
/
cpp-sp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Bump file versions for changed plugins
[shibboleth/cpp-sp.git]
/
fastcgi
/
shibresponder.cpp
diff --git
a/fastcgi/shibresponder.cpp
b/fastcgi/shibresponder.cpp
index
5783f4b
..
e23bf58
100644
(file)
--- a/
fastcgi/shibresponder.cpp
+++ b/
fastcgi/shibresponder.cpp
@@
-248,10
+248,11
@@
static long gstdin(FCGX_Request* request, char** content)
if (clen > STDIN_MAX)
clen = STDIN_MAX;
- *content = new char[clen];
+ *content = new char[clen
+ 1
];
cin.read(*content, clen);
clen = cin.gcount();
+ (*content)[clen] = 0;
}
else {
// *never* read stdin when CONTENT_LENGTH is missing or unparsable