Skip to content

Commit 20ea380

Browse files
committed
WIP Fixing tests for nginx
1 parent 98441e0 commit 20ea380

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/redirectionio_protocol.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ apr_status_t redirectionio_protocol_match(redirectionio_connection *conn, redire
106106
}
107107

108108
// Read action
109-
action_serialized = apr_palloc(r->pool, alen);
109+
action_serialized = apr_palloc(r->pool, alen + 1);
110110

111111
if (action_serialized == NULL) {
112112
return APR_EGENERAL;
@@ -330,6 +330,8 @@ static apr_status_t redirectionio_read_string(redirectionio_connection *conn, ch
330330
srlen = buf_size - sdrlen;
331331
}
332332

333+
*(string + buf_size) = '\0';
334+
333335
return APR_SUCCESS;
334336
}
335337

0 commit comments

Comments
 (0)