commit 575a152

default  ·  2023-10-19 04:47:42 +0000 UTC
parent 0ab03a8
Backport from xs.
2 files changed,  +6, -2
+5, -1
 1@@ -222,7 +222,11 @@ xs_dict *xs_fcgi_request(FILE *f, xs_str **payload, int *p_size, int *fcgi_id)
 2                 b_size += psz;
 3             }
 4             else {
 5-                /* the packet is complete; fill the payload info and finish */
 6+                /* add an asciiz to be able to treat it as a string */
 7+                buf = xs_realloc(buf, _xs_blk_size(b_size + 1));
 8+                buf[b_size] = '\0';
 9+
10+                /* fill the payload info and finish */
11                 *payload = (xs_str *)buf;
12                 *p_size  = b_size;
13 
+1, -1
1@@ -1 +1 @@
2-/* b109eea00ddc0765929e36ed1ca6f3f697262bb2 */
3+/* 4e5fe7e454d056206a6515e5c10f71d2d07aa0ba */