mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-28 23:53:36 +00:00
Backport from xs.
This commit is contained in:
parent
0ab03a8dff
commit
575a152305
2 changed files with 6 additions and 2 deletions
|
@ -222,7 +222,11 @@ xs_dict *xs_fcgi_request(FILE *f, xs_str **payload, int *p_size, int *fcgi_id)
|
||||||
b_size += psz;
|
b_size += psz;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
/* the packet is complete; fill the payload info and finish */
|
/* add an asciiz to be able to treat it as a string */
|
||||||
|
buf = xs_realloc(buf, _xs_blk_size(b_size + 1));
|
||||||
|
buf[b_size] = '\0';
|
||||||
|
|
||||||
|
/* fill the payload info and finish */
|
||||||
*payload = (xs_str *)buf;
|
*payload = (xs_str *)buf;
|
||||||
*p_size = b_size;
|
*p_size = b_size;
|
||||||
|
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
/* b109eea00ddc0765929e36ed1ca6f3f697262bb2 */
|
/* 4e5fe7e454d056206a6515e5c10f71d2d07aa0ba */
|
||||||
|
|
Loading…
Reference in a new issue